example

package
v0.0.0-...-9b758a2 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Bar = Type("Bar", func() {
	Attribute("Bar", UInt)
	Required("Bar")
})
View Source
var DateTime = Type("DateTime", String, func() {
	Format(FormatDateTime)
})
View Source
var ExampleType = Type("ExampleType", func() {
	Extend(Extension)
	Attribute("FieldWithExtension", FieldWithExtension)
	Attribute("External", utils.ExternalType)
	Attribute("SecondExternal", utils.SecondExternalType)
})
View Source
var Extension = Type("Extension", func() {
	Attribute("DateField", DateTime)
	Required("DateField")
})
View Source
var FieldWithExtension = Type("FieldWithExtension", func() {
	Extend(ParticularField)
})
View Source
var ParticularField = Type("ParticularField", func() {
	Attribute("BarField", Bar)
})

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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