Help us shape the future of Go! Take the 2026 Go Developer Survey

ini

package
v1.54.5 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Escape

func Escape(s string) string

Escape escapes values in ini files correctly according to gopkg.in/gcfg.v1 - the lib kubernetes uses.

Types

type Duration added in v1.1.0

type Duration struct {
	time.Duration
}

Duration is the encoding.TextUnmarshaler interface for time.Duration.

func (*Duration) MarshalText added in v1.1.0

func (d *Duration) MarshalText() []byte

MarshalText is used to convert from Duration to text.

func (*Duration) UnmarshalText added in v1.1.0

func (d *Duration) UnmarshalText(text []byte) error

UnmarshalText is used to convert from text to Duration.

Jump to

Keyboard shortcuts

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