Documentation ¶ Index ¶ func Validate(path string, v, w interface{}) error type ValidationError func (e *ValidationError) Error() string Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Validate ¶ func Validate(path string, v, w interface{}) error Validate returns nil if v and w are identical, bar any differences on any struct fields explicitly tagged `mutable:"true"`. Otherwise it returns a CloudError indicating the first difference it finds Types ¶ type ValidationError ¶ type ValidationError struct { Target string Message string } func (*ValidationError) Error ¶ func (e *ValidationError) Error() string Source Files ¶ View all Source files immutable.go Click to show internal directories. Click to hide internal directories.