ini

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig(name string, path string)

Types

type Config

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

func GetConfig

func GetConfig(name string) (*Config, error)

func (*Config) GetFile

func (c *Config) GetFile() (*ini.File, error)

func (*Config) GetKey

func (c *Config) GetKey(section string, key string) (*ini.Key, error)

func (*Config) GetPath

func (c *Config) GetPath(path string) string

GetPath 获取配置文件路径

func (*Config) GetSection

func (c *Config) GetSection(section string) (*ini.Section, error)

func (*Config) SetPath

func (c *Config) SetPath(path string)

SetPath 设置配置文件路径

Jump to

Keyboard shortcuts

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