types

package
v0.0.0-...-5da7bf1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewInt

func NewInt(name string, comments ...string) *ast.GenDecl

func NewPrimitive

func NewPrimitive(name string, t Primitive, comments ...string) *ast.GenDecl

TODO: WIP - design might change, as this does not seem to work as expected

func NewTypeSpec

func NewTypeSpec(name, typeName string, comments ...string) *ast.TypeSpec

TODO: WIP - design might change, as this does not seem to work as expected

Types

type Primitive

type Primitive string
const (
	Bool       Primitive = "bool"
	Float32    Primitive = "float32"
	Float64    Primitive = "float64"
	String     Primitive = "string"
	Byte       Primitive = "byte"
	Int        Primitive = "int"
	Int8       Primitive = "int8"
	Int16      Primitive = "int16"
	Int32      Primitive = "int32"
	Int64      Primitive = "int64"
	Rune       Primitive = "rune"
	Uint16     Primitive = "uint16"
	Uint32     Primitive = "uint32"
	Uint64     Primitive = "uint64"
	Uint       Primitive = "uint"
	Uintptr    Primitive = "uintptr"
	Complex64  Primitive = "complex64"
	Complex128 Primitive = "complex128"
)

Jump to

Keyboard shortcuts

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