Documentation
¶
Index ¶
- func ArchiveFiles(targetPath string, files []struct{ ... }) error
- func CheckError(err error)
- func ConfigDir() string
- func FetchAppDetail()
- func FormatServerErrorResult(body string) string
- func HomeDir() string
- func IsFileExists(path string) bool
- func StripUTF8BOM(stream []byte) []byte
- type ErrorResult
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArchiveFiles ¶
ArchiveFiles will make a zip file archive to targetPath
func CheckError ¶
func CheckError(err error)
CheckError will check if the err is nil, and exit the whole program
func FetchAppDetail ¶
func FetchAppDetail()
func FormatServerErrorResult ¶
FormatServerErrorResult format LeanCloud Server
func IsFileExists ¶
IsFileExists returns whether the file exists
func StripUTF8BOM ¶ added in v0.7.4
StripUTF8BOM try to remove a file byte stream's UTF8 BOM header.
Types ¶
type ErrorResult ¶
ErrorResult is the LeanCloud API Server API common error format
Click to show internal directories.
Click to hide internal directories.