Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // RandResultMap is a map indexing the attribute names of RandResult by view // name. RandResultMap = map[string][]string{ "default": { "result", }, } )
Functions ¶
func ValidateRandResult ¶
func ValidateRandResult(result *RandResult) (err error)
ValidateRandResult runs the validations defined on the viewed result type RandResult.
func ValidateRandResultView ¶
func ValidateRandResultView(result *RandResultView) (err error)
ValidateRandResultView runs the validations defined on RandResultView using the "default" view.
Types ¶
type RandResult ¶
type RandResult struct { // Type to project Projected *RandResultView // View to render View string }
RandResult is the viewed result type that is projected based on a view.
type RandResultView ¶
type RandResultView struct {
Result *int64
}
RandResultView is a type that runs validations on a projected type.
Click to show internal directories.
Click to hide internal directories.