Documentation ¶
Overview ¶
ORM mapper for Freelancer ini reader. Easy mapping values to change.
Index ¶
Constants ¶
View Source
const PATH_SEPARATOR = `/`
Variables ¶
View Source
var InheritKey = cfg.Key("inherit")
Functions ¶
This section is empty.
Types ¶
type ConfigModel ¶
type ConfigModel struct {
// contains filtered or unexported fields
}
func (*ConfigModel) Init ¶
func (s *ConfigModel) Init(sections []*inireader.Section, comments []string, filepath utils_types.FilePath)
func (*ConfigModel) Render ¶
func (s *ConfigModel) Render() *inireader.INIFile
func (*ConfigModel) SetOutputPath ¶
func (s *ConfigModel) SetOutputPath(filepath utils_types.FilePath)
type FloatOption ¶
type FloatOption func(s *Float)
func OptsF ¶
func OptsF(opts ...ValueOption) FloatOption
func WithDefaultF ¶
func WithDefaultF(default_value float64) FloatOption
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) RenderModel ¶
type Path ¶
type Path struct { *Value // contains filtered or unexported fields }
Linux friendly filepath, that can be returned to Windows way from linux
func (*Path) FileName ¶
func (s *Path) FileName() utils_types.FilePath
func (*Path) Get ¶
func (s *Path) Get() utils_types.FilePath
func (*Path) Set ¶
func (s *Path) Set(value utils_types.FilePath)
type PathOption ¶
type PathOption func(s *Path)
func OptsP ¶
func OptsP(opts ...ValueOption) PathOption
func WithLowercaseP ¶
func WithLowercaseP() PathOption
func WithoutSpacesP ¶
func WithoutSpacesP() PathOption
type String ¶
type String struct { *Value // contains filtered or unexported fields }
type StringOption ¶
type StringOption func(s *String)
func OptsS ¶
func OptsS(opts ...ValueOption) StringOption
func WithLowercaseS ¶
func WithLowercaseS() StringOption
func WithoutSpacesS ¶
func WithoutSpacesS() StringOption
type ValueOption ¶
type ValueOption func(i *Value)
func Comment ¶
func Comment() ValueOption
func Index ¶
func Index(index int) ValueOption
func Optional ¶
func Optional() ValueOption
func Order ¶
func Order(order int) ValueOption
Click to show internal directories.
Click to hide internal directories.