Versions in this module Expand all Collapse all v0 v0.1.1 Aug 2, 2020 Changes in this version + func Address(u *url.URL) string + func AddressIP(add string) string + func BoolToString(flag bool) string + func ByteView(size int64) string + func CheckPassword(crtyptPwd string, inputPwd string) bool + func Connect(address string, timeout int) bool + func ConnectCopy(in io.ReadWriteCloser, out io.ReadWriteCloser) + func ConnectCopyWithTimeout(in net.Conn, out net.Conn, tmout int) + func CryptPassword(pwd string) string + func EthGet() (map[string]string, error) + func GetDate() string + func GetID() string + func GetTimeStamp() string + func GetTimeStampNumber() string + func GetToken(length int) string + func HostnameGet() string + func Listen(address string) (net.Listener, error) + func LogInit(dir string, filename string) + func Percent(total int, used int) int + func Rand(max int) int + func SaveToFile(name string, body []byte) error + func StringDiff(oldlist []string, newlist []string) ([]string, []string) + func StringList(list []string) string + func StringToInt(value string) int + func TablePage(page, limit int, cnt int) (int, int) + func TenThousandPercent(total int, used int) int + func TlsConfigClient(servername string) (*tls.Config, error) + func TlsConfigServer(address ...string) (*tls.Config, error) + func Unzip(zipFile string, destDir string) error + func VersionGet() string + func WriteFull(w io.Writer, body []byte) error + func Zip(srcFile string, destZip string) error + type LogChannel struct + func NewLogChannel() *LogChannel + func (lc *LogChannel) Listen() <-chan []byte + func (lc *LogChannel) Write(p []byte) (n int, err error)