package
0.0.0-20210718062109-496be73d0ac7
Repository: https://github.com/piyuo/libsrv.git
Documentation: pkg.go.dev

# Functions

Exists return true if file found found := Exists("mock/mock.json") .
I18nJSON return i18n file, use gzip cache and default cache time j, err := I18nJSON("mock.json",0) .
I18nText return i18n text content, use gzip cache and default cache time j, err := I18nText("mock.json",0) .
Key return bytes from keys/file, no cache for key file cause it always have another cache bytes, err := Key("gcloud.json") .
KeyJSON read json object from file, no cache for key file cause it always have another cache f, err := KeyJSON("mock/mock.json") .
KeyText read json object from file, no cache for key file cause it always have another cache f, err := KeyText("mock/mock.json") .
Lookup find dir or file from current path all the way to the top, return actual path where dir or file locate, return empty if can not determine fullPath := Lookup("keys") .
Read binary data from file, filename can be relative path, It will not have error if file not found or can't be read, return nil instead bytes, err := Read(AssetsDir,"i18n/mock_en_US.json", NoCache, 0) .
Read binary data direct from file bytes, err := file.ReadDirect("mock/mock.json") .
ReadJSON read json object from file, filename can be relative path, return nil if file not found f, err := file.ReadJSON("mock/mock.json", NoCache, 0) .
ReadJSONDirect read json direct from file, filename can be relative path f, err := file.ReadJSONDirect("mock/mock.json") .
ReadText read text from file, filename can be relative path txt, err := file.ReadText("mock/mock.json", NoCache, 0) .

# 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

# Type aliases

No description provided by the author