cueify

package
v0.0.0-...-9004d47 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package cueify GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomCueType

type CustomCueType interface {
	CueType() []byte
}

type Decl

type Decl struct {
	PkgPath string
	Name    string
	Doc     []string
	Source  []byte
	Imports map[string]string
	Fields  map[string]*Field
}

func FromType

func FromType(tpe reflect.Type, optFns ...OptionFunc) *Decl

func (Decl) RuntimeDoc

func (v Decl) RuntimeDoc(names ...string) ([]string, bool)

type Field

type Field struct {
	Name         string
	Doc          []string
	Embed        string
	Loc          []int
	Type         reflect.Type
	AsOutput     bool
	Optional     bool
	Inline       bool
	DefaultValue *string
	Enum         []string
}

func (*Field) EmptyDefaults

func (i *Field) EmptyDefaults() (string, bool)

func (Field) RuntimeDoc

func (v Field) RuntimeDoc(names ...string) ([]string, bool)

type OneOfType

type OneOfType interface {
	OneOf() []any
}

type OptionFunc

type OptionFunc func(s *scanner)

func WithPkgPathReplaceFunc

func WithPkgPathReplaceFunc(replace func(pkgPath string) string) OptionFunc

func WithRegister

func WithRegister(register func(t reflect.Type)) OptionFunc

func (OptionFunc) RuntimeDoc

func (OptionFunc) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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