config

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2021 License: MIT Imports: 9 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsNet

func IsNet(host string) (bool, string)

IsNet checks whether the string host is a valid IPv6 or IPv4 address

func ReadConfigFile

func ReadConfigFile(folder string, fileName string) []byte

ReadConfigFile takes two argument: folder and fileName. Create if not exist It reads its content, trims\n and \r, and return []byte All errors are Fatal.

func ReadConfigFileLines added in v0.1.7

func ReadConfigFileLines(folder string, fileName string) [][]byte

ReadConfigFileLines takes two argument: folder and fileName. Create if not exist It reads its content line by line, and return [][]byte All errors are Fatal.

Types

This section is empty.

Jump to

Keyboard shortcuts

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