generate

package
v0.0.0-...-87137c7 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0, MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(configFile string, outdir string, renderType string)

Generate generates code based on a config file

func Load

func Load(jsonFile string) map[string]Function

Load exported codegen.json into structure

Types

type FormalParam

type FormalParam struct {
	Name      string `json:"name"`
	Type      string `json:"type"`
	IsSigned  bool   `json:"is_signed"`
	IsPointer bool   `json:"is_pointer"`
	Value     string `json:"value"`
}

A generic load can be done across generators (output should be fairly consitent)

type Function

type Function struct {
	Name         string        `json:"name"`
	FormalParams []FormalParam `json:"parameters,omitempty"`
}

A Function holds a name and one or more formal params

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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