zbfile

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: LGPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcDir

func CalcDir(gs_workdir, argdir string) (destdir string, err error)

func CmdParmLike

func CmdParmLike(leftpart string) string

func GetExeBaseName

func GetExeBaseName() string

func GetExeDir

func GetExeDir() string

func GetExeName

func GetExeName() string

func GetExePath

func GetExePath() string

func GetLoadedSoFile

func GetLoadedSoFile(subdir string) (retfiles []string)

func GetLogDir

func GetLogDir() string

func ReadExeJson

func ReadExeJson(jsonfile string, vp any) error

func SearchDir

func SearchDir(plist_file *[]os.FileInfo, dirname string, name_pattern string) ([]os.FileInfo, error)

func SearchFile

func SearchFile(plist_file *[]os.FileInfo, dirname string, name_pattern string) ([]os.FileInfo, error)

func WalkFiles

func WalkFiles(rootdir string, walkfun func(path string, info os.FileInfo) (stop bool), suffixes ...string) error

Types

type Config

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

func (*Config) Config

func (this *Config) Config(filename string, ifnot_create bool) (*Config, error)

func (*Config) FetchInt

func (this *Config) FetchInt(sectname, valname string, defa int64, remark string) (int64, error)

func (*Config) FetchSec

func (this *Config) FetchSec(sectname string) map[string]string

func (*Config) FetchStr

func (this *Config) FetchStr(sectname, valname string, defa string, remark string) string

func (*Config) Save

func (this *Config) Save() error

Jump to

Keyboard shortcuts

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