utils

package
v0.0.0-...-ff2f874 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Util

type Util struct {
	Config *ini.File
}

func (*Util) GetValue

func (u *Util) GetValue(sec, key string) string

func (*Util) GetValue2

func (u *Util) GetValue2(sec, key string, silence bool) string

func (*Util) LoadConfig

func (u *Util) LoadConfig(conf string) (err error)

func (*Util) ReadFile

func (u *Util) ReadFile(fpath string) ([]byte, error)

func (*Util) WriteFile

func (u *Util) WriteFile(fpath string, contents []byte) error

Jump to

Keyboard shortcuts

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