gen

package
v0.0.0-...-d3cd537 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const StructTemplate = `type {{.Name}}{{.Generics}} struct {{.Fields}}`

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Package   string
	Functions []Function
}

type Function

type Function struct {
	Name     string
	Generics string
	Args     string
	Results  string
	Body     string
}

type Generic

type Generic struct {
	Label  string
	Type   GenericType
	Amount int
}

func NewGeneric

func NewGeneric(label string, generticType GenericType, amount int) Generic

type GenericType

type GenericType string
const (
	Any        GenericType = "any"
	Slice      GenericType = "slice"
	Map        GenericType = "map"
	Seq        GenericType = "seq"
	Comparable GenericType = "comparable"
)

type Kind

type Kind string

type Struct

type Struct struct {
	Name string
}

type Type

type Type struct {
	Name string
}

Jump to

Keyboard shortcuts

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