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]interface{}) error

func (Codec) Encode

func (c Codec) Encode(v map[string]interface{}) ([]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.11.0
Published
Apr 13, 2022
Platform
linux/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.