util

package
v0.0.0-...-32cbc77 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check_dir

func Check_dir(path string) error

func InitLogger

func InitLogger(filePath string) *zap.Logger

func OutJson

func OutJson(v interface{}, testType string) error

func WriteByteFile

func WriteByteFile(path string, data []byte, isAppend bool) (err error)

func WritePEMFile

func WritePEMFile(path string, block *pem.Block, perm os.FileMode) error

Types

type Config

type Config struct {
	Title       string
	EchonetLite EchonetLiteConf
}

func ReadConfig

func ReadConfig(filePath string) *Config

type EchonetLiteConf

type EchonetLiteConf struct {
	IP []string
}

func DistributeConf

func DistributeConf(config Config) EchonetLiteConf

Jump to

Keyboard shortcuts

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