io

package
v0.0.0-...-f1610be Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 15 Imported by: 13

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(msg interface{})

func CheckSocket

func CheckSocket(hostPort string, proto string) bool

CheckSocket Return if given IP:PORT bind open or not, network must must be "tcp", "tcp4", "tcp6", "unix" or "unixpacket". No validation, caller must do that/*

func FileExists

func FileExists(filename string) bool

FileExists /*

func IsDir

func IsDir(dir string) (bool, error)

IsDir /**

func PrettyPrint

func PrettyPrint(v interface{}) (err error)

PrettyPrint pretty printer

func PrettyString

func PrettyString(v interface{}) string

PrettyString print string as pretty json

func PrintAndExit

func PrintAndExit(msg string)

func ReadUint64

func ReadUint64(data []byte) (ret uint64)

ReadUint64 /**

func Unzip

func Unzip(src string, destination string) ([]string, error)

Unzip decompress a zip archived file copying all files and folders within the zip file to an output destination directory

func YamlPrinter

func YamlPrinter(t interface{}, isColor ...bool) error

YamlPrinter Default Json printer

func YamlString

func YamlString(t interface{}) string

YamlString return struct yaml as one string

func ZipDir

func ZipDir(source, target string) error

ZipDir zip source dir and writes to target zip file

Types

This section is empty.

Jump to

Keyboard shortcuts

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