fakedata

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidOptionsType = errors.New("invalid options value type")
View Source
var ErrUnknownType = errors.New("unknown type")

Functions

func GetTypes

func GetTypes() []string

Types

type Node

type Node struct {
	Type       string          `mapstructure:"type"`
	Item       *Node           `mapstructure:"item"`
	Properties map[string]Node `mapstructure:"properties"`
	Options    map[string]any  `mapstructure:"options"`
	Count      int             `mapstructure:"count"`
	Seed       uint64          `mapstructure:"seed"`
}

func (*Node) Clone

func (root *Node) Clone() *Node

func (*Node) Compile

func (root *Node) Compile() (any, error)

Jump to

Keyboard shortcuts

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