Documentation
¶
Index ¶
- func CreateUUID() (uuid string)
- func Encrypt(plaintext string) (cryptext string)
- func ExportJSON(d interface{}, w io.Writer) (err error)
- func If(cond bool, trueVal, falseVal interface{}) interface{}
- func LoadJSON(r io.Reader, d interface{}) (err error)
- func NewError(mod, pack, foo, body string) (err error)
- type ModuleError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateUUID ¶
func CreateUUID() (uuid string)
CreateUUID a random UUID with from RFC 4122 adapted from http://github.com/nu7hatch/gouuid
func ExportJSON ¶
ExportJSON exports a json data to an output
func If ¶
func If(cond bool, trueVal, falseVal interface{}) interface{}
If implements an altenative of ?: operator
Types ¶
type ModuleError ¶
type ModuleError struct {
// contains filtered or unexported fields
}
ModuleError represents an error from specific module and package
Click to show internal directories.
Click to hide internal directories.