Documentation
¶
Index ¶
- func CompactSerial(x interface{}) (string, error)
- func ExpandSerial(serial []byte, dst interface{}) error
- func HandleCORS(w http.ResponseWriter, r *http.Request) bool
- func HttpError(w http.ResponseWriter, err error, status int)
- func MarshalCBOR(x interface{}) ([]byte, error)
- func MarshalJSON(x interface{}) ([]byte, error)
- func ParamValue(r *http.Request, pos int) string
- func ParseJSON(r *http.Request, dst interface{}) error
- func ServeJSON(w http.ResponseWriter, src interface{}) error
- func UnmarshalCBOR(b []byte, dst interface{}) error
- func UnmarshalJSON(b []byte, dst interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompactSerial ¶
func ExpandSerial ¶
func HandleCORS ¶
func HandleCORS(w http.ResponseWriter, r *http.Request) bool
func MarshalCBOR ¶
func MarshalJSON ¶
func ServeJSON ¶
func ServeJSON(w http.ResponseWriter, src interface{}) error
func UnmarshalCBOR ¶
func UnmarshalJSON ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.