# README
kgo
Golang utils
# Functions
No description provided by the author
No description provided by the author
BytesToPrivateKey bytes to private key.
BytesToPublicKey bytes to public key.
No description provided by the author
ComputeMD5Checksum computes the MD5 checksum of the file 'filename'.
ComputeSHA1Checksum computes the SHA1 checksum of the file 'filename'.
ConnectDB connects to MongoDB server and returns the client object.
ContainsDotDot ...
ConvertDate ....
CopyFile ...
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
DecryptWithPrivateKey decrypts data with private key.
DirExists ...
EncryptWithPublicKey encrypts data with public key.
Error ...
No description provided by the author
No description provided by the author
FileExists ...
FuncName ...
GenerateKeyPair generates a new key pair.
GenKey ...
GenRawKey ...
GetCloudFlareIdentifier ...
GetIP gets a requests IP address by reading off the forwarded-for header (for proxies) and falls back to use the remote address.
No description provided by the author
GetObjectID ...
HashPassword ...
No description provided by the author
JoinString ...
JSONParse parses the request body as JSON object.
JSONReply writes reponse with the body is JSON of variable x.
ListContainString ...
LocalRedirect redirects current path to new path.
Log ...
No description provided by the author
No description provided by the author
PostJson sends a POST request and return error if the status code is not equal 200.
No description provided by the author
PrintString converts an interface object to string.
PrivateKeyToBytes private key to bytes.
PublicKeyToBytes public key to bytes.
RandInt ...
RandPassword generates password randomly.
No description provided by the author
ReadTextFile ...
No description provided by the author
No description provided by the author
RemoveJSONComment ...
RemoveSpace ...
Reverse returns its argument string reversed rune-wise left to right.
Run ...
RunMongoSession calls function fx in a MongoDB session.
No description provided by the author
No description provided by the author
SHA256 creates hash value of data.
StringsToInterfaces ...
StringToDate ...
TimeToDate ...
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
ToXLink converts path to style 'a/b/c'.
UnmarshalJSONFile ...
URLFirstTwoPath ...
URLSplit2 splits url into two paths.
URLSplit3 splits url into three paths.
VerifyBriefDate ...
VerifyRecaptcha ...
VerifyRecaptchaV2 ...
VerifyRecaptchaV3 ...
Wait ...
# Constants
No description provided by the author
DateNil ...
No description provided by the author
# Variables
No description provided by the author
ErrInvalidDateStringValue ...
ErrInvalidRecaptchaToken ...
No description provided by the author
No description provided by the author
FMap ...
# Structs
No description provided by the author
CronJob ...
HTTPFS returns the index.html of directory instead of file list.
RecaptchaResponse ...
TempMan ...