views

package
v0.0.0-...-1b5e7b1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// MultiplyresponseMap is a map indexing the attribute names of
	// Multiplyresponse by view name.
	MultiplyresponseMap = map[string][]string{
		"default": {
			"multiple",
		},
	}
)

Functions

func ValidateMultiplyresponse

func ValidateMultiplyresponse(result *Multiplyresponse) (err error)

ValidateMultiplyresponse runs the validations defined on the viewed result type Multiplyresponse.

func ValidateMultiplyresponseView

func ValidateMultiplyresponseView(result *MultiplyresponseView) (err error)

ValidateMultiplyresponseView runs the validations defined on MultiplyresponseView using the "default" view.

Types

type Multiplyresponse

type Multiplyresponse struct {
	// Type to project
	Projected *MultiplyresponseView
	// View to render
	View string
}

Multiplyresponse is the viewed result type that is projected based on a view.

type MultiplyresponseView

type MultiplyresponseView struct {
	// Result of multiplication
	Multiple *int
}

MultiplyresponseView is a type that runs validations on a projected type.

Jump to

Keyboard shortcuts

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