generator

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGoGenerator

func NewGoGenerator() *goGenerator

func NewTsGenerator

func NewTsGenerator() *tsGenerator

Types

type Generator

type Generator interface {
	GenStringType(n node.Node, extractCodeMap map[string]common.ExtractCode) string
	GenFloatType(n node.Node, extractCodeMap map[string]common.ExtractCode) string
	GenBoolType(n node.Node, extractCodeMap map[string]common.ExtractCode) string
	GenListType(n node.Node, childrenTypeName []string, extractCodeMap map[string]common.ExtractCode) string
	GenStructType(n node.Node, childrenTypeMap map[string]string, extractCodeMap map[string]common.ExtractCode) string
}

Jump to

Keyboard shortcuts

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