Documentation ¶
Overview ¶
Package strman implements localized string manager that supports Nox CSF files.
Index ¶
- type Entry
- type ID
- type StringManager
- func (sm *StringManager) Get(id ID) (Entry, bool)
- func (sm *StringManager) GetInFile(id ID, file string) (Entry, bool)
- func (sm *StringManager) GetString(id ID) string
- func (sm *StringManager) GetStringInFile(id ID, file string) string
- func (sm *StringManager) GetVariant(id ID) (Variant, bool)
- func (sm *StringManager) GetVariantInFile(id ID, file string) (Variant, bool)
- func (sm *StringManager) Lang() int
- func (sm *StringManager) ReadCSF(path string) error
- func (sm *StringManager) ReadFile(path string) error
- func (sm *StringManager) ReadJSON(path string) error
- func (sm *StringManager) WriteJSON(path string, pretty bool) error
- type Variant
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StringManager ¶
type StringManager struct {
// contains filtered or unexported fields
}
func New ¶
func New() *StringManager
func (*StringManager) GetInFile ¶
func (sm *StringManager) GetInFile(id ID, file string) (Entry, bool)
func (*StringManager) GetString ¶
func (sm *StringManager) GetString(id ID) string
func (*StringManager) GetStringInFile ¶
func (sm *StringManager) GetStringInFile(id ID, file string) string
func (*StringManager) GetVariant ¶
func (sm *StringManager) GetVariant(id ID) (Variant, bool)
func (*StringManager) GetVariantInFile ¶
func (sm *StringManager) GetVariantInFile(id ID, file string) (Variant, bool)
func (*StringManager) Lang ¶
func (sm *StringManager) Lang() int
func (*StringManager) ReadCSF ¶
func (sm *StringManager) ReadCSF(path string) error
func (*StringManager) ReadFile ¶
func (sm *StringManager) ReadFile(path string) error
func (*StringManager) ReadJSON ¶
func (sm *StringManager) ReadJSON(path string) error
Click to show internal directories.
Click to hide internal directories.