Help us shape the future of Go! Take the 2026 Go Developer Survey

codegen

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: Apache-2.0 Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(options *Options) error

Generate generates transformed code into output file

Types

type Options

type Options struct {
	Source string   `short:"s" long:"sourceURL" description:"source URL"`
	Dest   string   `short:"d" long:"destinationURL" description:"destination URL"`
	Types  []string `short:"t" long:"struct type" description:"struct type"`
	Pkg    string   `short:"p" long:"package" description:"package"`
}

Options represents Cli options

func (*Options) Validate

func (o *Options) Validate() error

Validate validates input options

Directories

Path Synopsis
test_data

Jump to

Keyboard shortcuts

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