semantic

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2024 License: GPL-3.0 Imports: 4 Imported by: 1

Documentation

Overview

ORM mapper for Freelancer ini reader. Easy mapping values to change.

Index

Constants

This section is empty.

Variables

This section is empty.

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 Int

type Int struct {
	Value
}

func NewInt

func NewInt(section *inireader.Section, key string, value_type ValueType, optional bool) *Int

func (*Int) Delete

func (s *Int) Delete()

func (*Int) Get

func (s *Int) Get() int

func (*Int) Set

func (s *Int) Set(value int)

type Model

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

func (*Model) Map

func (s *Model) Map(section *inireader.Section)

func (*Model) Render

func (s *Model) Render() *inireader.Section

type Path

type Path struct {
	Value
}

Linux friendly filepath, that can be returned to Windows way from linux

func NewPath

func NewPath(section *inireader.Section, key string, value_type ValueType, optional bool) *Path

func (*Path) Delete

func (s *Path) Delete()

func (*Path) FileName

func (s *Path) FileName() string

func (*Path) Get

func (s *Path) Get() string

func (*Path) Set

func (s *Path) Set(value string)

type String

type String struct {
	Value
}

func NewString

func NewString(section *inireader.Section, key string, value_type ValueType, optional bool) *String

func (*String) Delete

func (s *String) Delete()

func (*String) Get

func (s *String) Get() string

func (*String) Set

func (s *String) Set(value string)

type Value

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

type ValueType

type ValueType int64
const (
	TypeComment ValueType = iota
	TypeVisible
)

Jump to

Keyboard shortcuts

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