Documentation
¶
Overview ¶
Package xgo is a collection of packages to serve as the building blocks for developing Go applications.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONer ¶
type JSONer interface {
JSON() interface{}
}
JSONer is implemented by any value that has a JSON method.
type Validator ¶
type Validator interface { // Validate validates the given value. Validate(interface{}) error }
Validator is implemented by any value which has a Validate method.
type ValidatorFunc ¶
type ValidatorFunc func(interface{}) error
ValidatorFunc type is an adapter to allow the use of ordinary functions as a Validator. If f is a function with the appropriate signature, ValidatorFunc(f) is an Validator that calls f.
func (ValidatorFunc) Validate ¶
func (f ValidatorFunc) Validate(v interface{}) error
Validate calls f(v).
Directories
¶
Path | Synopsis |
---|---|
Package errors is a general purpose error handling package, with few extra bells and whistles for HTTP interop.
|
Package errors is a general purpose error handling package, with few extra bells and whistles for HTTP interop. |
Package httputil provides HTTP utility functions, focused around decoding and responding with JSON.
|
Package httputil provides HTTP utility functions, focused around decoding and responding with JSON. |
Click to show internal directories.
Click to hide internal directories.