generator

package module
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2022 License: MIT Imports: 15 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReplaceFieldName added in v0.2.1

func ReplaceFieldName(name string) string

ReplaceFieldName a field name with a non-reserved name

func SplitPackegeStruct

func SplitPackegeStruct(s string) (string, string)

SplitPackegeStruct - package.structを分割

Types

type ExternalImporter added in v0.3.0

type ExternalImporter struct {
	Path string
	Name string
}

type Generator

type Generator struct {
	ExternalImporter            func(*tstypes.Object) *ExternalImporter
	ExternalCommonConverterPath string
	// contains filtered or unexported fields
}

func NewGenerator

func NewGenerator(types map[string]tstypes.Type, prereserved []string) *Generator

func (*Generator) Generate

func (g *Generator) Generate() (string, error)

Directories

Path Synopsis
testfiles

Jump to

Keyboard shortcuts

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