immutable

package
v0.0.0-...-54afde0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

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