Documentation
¶
Index ¶
Constants ¶
View Source
const (
WritePermissions = 0600
)
Variables ¶
View Source
var ( ErrNotFound = errors.New("Not found") ErrMissingRequiredParam = errors.New("Required param missing value") ErrMoreChoices = errors.New("There are additional choices") ErrNoSuchModule = errors.New("Module not found") ErrNoSuchCommand = errors.New("Command not found") ErrNoSuchSubCommand = errors.New("Subcommand not found") ErrUnexpectedStatus = errors.New("Unexpected status code") )
Functions ¶
func GetJsonString ¶
func GetJsonString(r interface{}) string
func TryUnmarshalJson ¶
func TryUnmarshalJson(str *string) (*json.RawMessage, error)
check if a given string is valid json if valid, returns raw bytes of unmarshalled json
Types ¶
Click to show internal directories.
Click to hide internal directories.