FlyConfigFile

package
v0.0.0-...-482d8b5 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FlyIni

type FlyIni struct {
	FileName string
	Config   *ini.File
	Ready    bool
}

func NewFlyIni

func NewFlyIni(filename string) *FlyIni

func (*FlyIni) GetBool

func (s *FlyIni) GetBool(section string, key string, defaults bool) bool

GetBool 获取bool

func (*FlyIni) GetConfigKey

func (s *FlyIni) GetConfigKey(section string, key string) *ini.Key

GetConfigKey

func (*FlyIni) GetDuration

func (s *FlyIni) GetDuration(section string, key string, defaults time.Duration) time.Duration

GetDuration

func (*FlyIni) GetFloat64

func (s *FlyIni) GetFloat64(section string, key string, defaults float64) float64

GetFloat64

func (*FlyIni) GetInt

func (s *FlyIni) GetInt(section string, key string, defaults int) int

GetInt

func (*FlyIni) GetInt64

func (s *FlyIni) GetInt64(section string, key string, defaults int64) int64

GetInt64

func (*FlyIni) GetString

func (s *FlyIni) GetString(section string, key string, defaults string) string

GetString

func (*FlyIni) GetStringArr

func (s *FlyIni) GetStringArr(section string, key string, defaults string) []string

func (*FlyIni) GetTime

func (s *FlyIni) GetTime(section string, key string, defaults time.Time) time.Time

GetTime

func (*FlyIni) GetUint

func (s *FlyIni) GetUint(section string, key string, defaults uint) uint

GetUint

func (*FlyIni) GetUint64

func (s *FlyIni) GetUint64(section string, key string, defaults uint64) uint64

GetUint64

func (*FlyIni) Open

func (s *FlyIni) Open(file string) error

获取串口配置名称

Jump to

Keyboard shortcuts

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