package
0.0.0-20230527022716-f4c0d56564d7
Repository: https://github.com/ansurfen/cushion.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

ConvertByte2String return encoding string, which main effect to support unicode bytes, for example Chinese.
CreateMetaTable to create or open MetaTable.
CreatePlistFile create specify plist when plist isn't exist.
No description provided by the author
No description provided by the author
No description provided by the author
Exec automatically fit in os enviroment to execute command.
ExecStr automatically split string to string arrary, then call Exec to execute.
FetchFile fetch file from remote source to local destination.
Filename returns the last element name of fullpath.
FirstLower return string in which the first letter is lowercase.
FirstUpper return string in which the first letter is uppercase.
FmtTimestamp return a time string whom format is 2006-01-02.
GetEnv returns global BaseEnv pointer.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
IsURL determine whether urlStr is a URL.
JsonStr return json string according to JsonValue.
MD5 return the MD5 checksum of the data.
Mkdirs recurse to create path.
MoveFile move file from src to dst, like mv or move command.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NewEnv to init BaseEnv and return Payload pointer which will be initialized from specify configure file in opt.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NowTimestamp returm current timestamp.
NowTimestamp returm current timestamp string.
OpenConf unmarshal file which located in disk to memory according to name, type, dir.
OpenConfFromPath unmarshal file which located in disk to memory according to path.
CreateMetaTable to open MetaTable.
OpenPlistFile open specify plist.
PathIsExist judge whether path exist.
Printf represent title and rows with tidy.
RandomPort return an available port with random.
RandString return string of length n.
ReadStraemFromFile return data to be filter from specify file.
ReadStraemFromFile return data to be filter from string.
ReadStraemFromFile return total data from specify file.
SafeBatchMkdirs recurse to create dirs when path isn't exist.
SafeMkdirs recurse to create path when path isn't exist.
WriteFile write data or create file to write data according to file when file isn't exist.
SetBytesMode set convert mode: BigEndian or LittleEndian.
SHA256 return the SHA256 checksum of the data.
Powered by github.com/syyongx/php2go.
TrimMultiSpace trim redundant space.
Unzip unzip zip of source to specify path.
WriteFile write data or create file to write data according to file.
Zip to compress zip of source to specify path.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
GB18030 support Chinese encoding.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

ByteTransfomer is used to transform basic type to bytes, which is BigEndian convert in default.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
BytesDecode is used to transform bytes to basic type.
BytesEncode is used to transform basic type to bytes.
BytesTransfomer is used to convert between basic type and bytes.
ByteWalk can extract bytes by bit.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
PlistFile manage plist, which serves for PosixMetaTable.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
ReflectDict is a type dictionary and manage all type by map.
ReflectObject is an assembly on reflect.Value and relfect.Type.
No description provided by the author

# Interfaces

No description provided by the author
EnvVar is an interface to abstract different os enviroment variable.
JsonValue is an interface to abstract object of json type.
MetaTable is an interface to abstract plist(darwin) and regedit(windows).
Plugin is an interface to abstract dynamic library (dll, dylib, so).
PluginFunc is an interface to abstract function to be exported dynamic library.

# Type aliases

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author