package ini

import "github.com/spf13/viper/internal/encoding/ini"

Index

Types

type Codec

type Codec struct {
	KeyDelimiter string
	LoadOptions  LoadOptions
}

Codec implements the encoding.Encoder and encoding.Decoder interfaces for INI encoding.

func (Codec) Decode

func (c Codec) Decode(b []byte, v map[string]any) error

func (Codec) Encode

func (c Codec) Encode(v map[string]any) ([]byte, error)

type LoadOptions

type LoadOptions = ini.LoadOptions

LoadOptions contains all customized options used for load data source(s). This type is added here for convenience: this way consumers can import a single package called "ini".

Source Files

codec.go map_utils.go

Version
v1.18.2
Published
Dec 18, 2023
Platform
linux/amd64
Imports
5 packages
Last checked
2 hours ago

Tools for package owners.