provider

package
v1.9.11 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(opts Options) (rerr error)

Generate generates cue provider from Go struct

Types

type Options

type Options struct {
	File     string                 // Go file path
	Writer   io.Writer              // target writer
	Types    map[string]cuegen.Type // option cuegen.WithTypes
	Nullable bool                   // option cuegen.WithNullable
}

Options is options of generation

Jump to

Keyboard shortcuts

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