ini

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 22, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	// contains filtered or unexported fields
}

func Load

func Load(source interface{}) (File, error)

func (File) Decrypt added in v0.0.7

func (cfg File) Decrypt(pubkey string, privkey string) ([]string, error)

func (File) Encrypt added in v0.0.7

func (cfg File) Encrypt(pubkey string, output io.Writer) error

func (File) GetSections

func (file File) GetSections() []Section

func (File) PubKey

func (file File) PubKey() (string, error)

func (File) WriteTo

func (file File) WriteTo(output io.Writer) (int64, error)

type Key

type Key struct {
	// contains filtered or unexported fields
}

func (Key) Comment

func (key Key) Comment() string

func (Key) Name

func (key Key) Name() string

func (Key) SetValue

func (key Key) SetValue(value string)

func (Key) Value

func (key Key) Value() string

type Section

type Section struct {
	// contains filtered or unexported fields
}

func (Section) GetKeys

func (section Section) GetKeys() []Key

func (Section) Name

func (section Section) Name() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL