Documentation ¶ Index ¶ func RandomString(n int) string type APIError func BuildError(code int, errorMessage string) *APIError func ResToType(code int, reader io.Reader, successType interface{}) *APIError func (apiError *APIError) Error() string func (apiError *APIError) String() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func RandomString ¶ added in v0.1.8 func RandomString(n int) string Types ¶ type APIError ¶ type APIError struct { Code int `json:"code"` ErrorMessage string `json:"error"` Success bool `json:"success"` } func BuildError ¶ func BuildError(code int, errorMessage string) *APIError func ResToType ¶ func ResToType(code int, reader io.Reader, successType interface{}) *APIError func (*APIError) Error ¶ func (apiError *APIError) Error() string func (*APIError) String ¶ added in v0.2.1 func (apiError *APIError) String() string Source Files ¶ View all Source files util.go Click to show internal directories. Click to hide internal directories.