Versions in this module Expand all Collapse all v0 v0.0.2 Jan 16, 2025 v0.0.1 Oct 6, 2024 Changes in this version + func IsUnsupportedExtensionErr(err error) bool + func LoadConfContext[T any](ctx context.Context) (T, error) + func LoadConf[T any](path string, marshaler Marshaler) (T, error) + func SaveConfContext(ctx context.Context) error + func SaveConf[T any](path string, marshaler Marshaler, v T) (T, error) + type Gophig struct + func NewGophig[T any](name string, marshaler Marshaler, perm fs.FileMode) *Gophig[T] + func (g *Gophig[T]) LoadConf() (T, error) + func (g *Gophig[T]) SaveConf(v T) error + type JSONMarshaler struct + Indent bool + func (JSONMarshaler) Unmarshal(data []byte, v interface{}) error + func (m JSONMarshaler) Marshal(v interface{}) ([]byte, error) + type Marshaler interface + Marshal func(v interface{}) ([]byte, error) + Unmarshal func(data []byte, v interface{}) error + func MarshalerFromExtension(ext string) (Marshaler, error) + type RawContext struct + func (c *RawContext) Value(key any) any + type TOMLMarshaler struct + func (TOMLMarshaler) Marshal(v interface{}) ([]byte, error) + func (TOMLMarshaler) Unmarshal(data []byte, v interface{}) error + type UnsupportedExtensionError struct + func (e UnsupportedExtensionError) Error() string + type YAMLMarshaler struct + func (YAMLMarshaler) Marshal(v interface{}) ([]byte, error) + func (YAMLMarshaler) Unmarshal(data []byte, v interface{}) error