stconfig

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: MIT Imports: 6 Imported by: 0

README

stconfig is a simple lib for reading some config. example

	LoadINI

Documentation

Overview

ini.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

func LoadINI

func LoadINI(path string) (*Config, error)

func (*Config) Boolean

func (config *Config) Boolean(key string, def bool) bool

func (*Config) BooleanSection

func (config *Config) BooleanSection(sec string, key string, def bool) bool

func (*Config) DelSection

func (config *Config) DelSection(section string)

func (*Config) Float

func (config *Config) Float(key string, def float64) float64

func (*Config) FloatSection

func (config *Config) FloatSection(sec string, key string, def float64) float64

func (*Config) Integer

func (config *Config) Integer(key string, def int64) int64

func (*Config) IntegerSection

func (config *Config) IntegerSection(sec string, key string, def int64) int64

func (*Config) Save

func (config *Config) Save() error

func (*Config) Section

func (config *Config) Section(sec string) map[string]string

func (*Config) SectionSet

func (config *Config) SectionSet(section, key, val, comment string)

func (*Config) Set

func (config *Config) Set(key, val, comment string)

func (*Config) String

func (config *Config) String(key string, def string) string

func (*Config) StringSection

func (config *Config) StringSection(sec string, key string, def string) string

Jump to

Keyboard shortcuts

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