Documentation
¶
Index ¶
- type TextConfig
- func (this *TextConfig) GetConfBool(key string) bool
- func (this *TextConfig) GetConfFile() string
- func (this *TextConfig) GetConfFloat64(key string) float64
- func (this *TextConfig) GetConfInt(key string) int64
- func (this *TextConfig) GetConfString(key string) string
- func (this *TextConfig) MustGetConfString(key string, def string) string
- func (this *TextConfig) SaveTo(w io.Writer) error
- func (this *TextConfig) SaveToFile(fname string) error
- func (this *TextConfig) SetConfBool(key string, value bool)
- func (this *TextConfig) SetConfInt(key string, value int64)
- func (this *TextConfig) SetConfString(key string, value string)
- func (this *TextConfig) TryGetConfString(key string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TextConfig ¶
type TextConfig struct {
// contains filtered or unexported fields
}
func FromString ¶
func FromString(szContent []byte) (*TextConfig, error)
func (*TextConfig) GetConfBool ¶
func (this *TextConfig) GetConfBool(key string) bool
func (*TextConfig) GetConfFile ¶
func (this *TextConfig) GetConfFile() string
func (*TextConfig) GetConfFloat64 ¶
func (this *TextConfig) GetConfFloat64(key string) float64
func (*TextConfig) GetConfInt ¶
func (this *TextConfig) GetConfInt(key string) int64
func (*TextConfig) GetConfString ¶
func (this *TextConfig) GetConfString(key string) string
func (*TextConfig) MustGetConfString ¶
func (this *TextConfig) MustGetConfString(key string, def string) string
func (*TextConfig) SaveToFile ¶
func (this *TextConfig) SaveToFile(fname string) error
func (*TextConfig) SetConfBool ¶
func (this *TextConfig) SetConfBool(key string, value bool)
func (*TextConfig) SetConfInt ¶
func (this *TextConfig) SetConfInt(key string, value int64)
func (*TextConfig) SetConfString ¶
func (this *TextConfig) SetConfString(key string, value string)
func (*TextConfig) TryGetConfString ¶
func (this *TextConfig) TryGetConfString(key string) string
Click to show internal directories.
Click to hide internal directories.