util

package
v0.5.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 31, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL