enums

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIResponseStatus

type APIResponseStatus int
const (
	Success APIResponseStatus = iota
	Error
)

func APIResponseStatusString

func APIResponseStatusString(s string) (APIResponseStatus, error)

APIResponseStatusString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.

func (APIResponseStatus) MarshalJSON

func (i APIResponseStatus) MarshalJSON() ([]byte, error)

func (APIResponseStatus) String

func (i APIResponseStatus) String() string

func (*APIResponseStatus) UnmarshalJSON

func (i *APIResponseStatus) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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