ini

package
v0.0.0-...-50c553c Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewFileReader

func NewFileReader(filePath string) (*os.File, error)

打开一个文件句柄

func PathExists

func PathExists(path string) bool

检查文件或文件夹是否存在

Types

type Config

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

配置文件

func NewFileConf

func NewFileConf(filePath string) (*Config, error)

初始化一个文件配置句柄

func (*Config) Float64

func (c *Config) Float64(tag string) (float64, error)

返回一个float64配置值

func (*Config) Int

func (c *Config) Int(tag string) (int, error)

返回一个Int类型的配置值

func (*Config) Int64

func (c *Config) Int64(tag string) (int64, error)

返回一个int64配置值

func (*Config) String

func (c *Config) String(tag string) string

将指定的配置以字符串返回

Jump to

Keyboard shortcuts

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