fixtures

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MyEmbeddedType added in v0.4.0

type MyEmbeddedType struct {
	Fizz bool
	Buzz bool
}

MyEmbeddedType will be embedded in MyType

type MyType

type MyType struct {
	// ID is readable and writable
	ID uuid.UUID `read_col:"my_type.id" write_col:"id"`
	// Foo is readable and sortable
	Foo string `read_col:"my_type.foo,sortable" write_col:"foo"`
	// Bar is readable and writable (from a column with different name)
	Bar []byte `read_col:"my_type.the_bar" write_col:"the_bar"`
	// Baz should be embedded as JSON
	Baz MyEmbeddedType `read_col:"my_type.baz" write_col:"baz,json"`
	// LastTime is a readable, sortable and writable pointer column
	LastTime *time.Time `read_col:"my_type.last_time,sortable" write_col:"last_time"`
}

MyType is a fixture struct type

Directories

Path Synopsis
Code generated by construct, DO NOT EDIT.
Code generated by construct, DO NOT EDIT.

Jump to

Keyboard shortcuts

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