Documentation
¶
Index ¶
- func DefaultConfigDir(name string) (string, error)
- func DefaultJoinPath(profile string, paths ...string) string
- func DefaultWriteFile(path string) error
- func WithDefaultFunction(writefile func(path string) error) func(*Config)
- func WithDirFunction(dir func(name string) (string, error)) func(*Config)
- func WithMarshalUnmarshaller(m MarshalUnmarshaller) func(*Config)
- func WithProfile(profile string) func(*Config)
- type Config
- type JSONModule
- type MarshalUnmarshaller
- type Marshaller
- type Unmarshaller
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DefaultJoinPath ¶
DefaultJoinPath :
func WithDefaultFunction ¶
WithDefaultFunction :
func WithDirFunction ¶
WithDirFunction :
func WithMarshalUnmarshaller ¶
func WithMarshalUnmarshaller(m MarshalUnmarshaller) func(*Config)
WithMarshalUnmarshaller :
Types ¶
type Config ¶
type Config struct { Name string Profile string // optional M MarshalUnmarshaller JoinPath func(profile string, paths ...string) string Default func(path string) error Dir func(name string) (string, error) }
Config :
type JSONModule ¶
type JSONModule struct { }
JSONModule :
type MarshalUnmarshaller ¶
type MarshalUnmarshaller interface { Marshaller Unmarshaller }
MarshalUnmarshaller :
type Marshaller ¶
Marshaller :
type Unmarshaller ¶
Unmarshaller :
Click to show internal directories.
Click to hide internal directories.