turbine

package module
v0.0.0-...-455c8a4 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: OSL-3.0 Imports: 11 Imported by: 0

README

turbine

Documentation

Overview

TODO

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(path, template string) error

Types

type Decl

type Decl struct {
	Name Name
	Type *Type
	// contains filtered or unexported fields
}

func LoadDecl

func LoadDecl(path, name string) (*Decl, error)

LoadDecl returns a *Decl for the declaration in the package. It returns nil if the declaration does not exist. It returns an error if the package cannot be loaded.

func LoadPackageDecl

func LoadPackageDecl(p *packages.Package, name string) *Decl

LoadPackageDecl returns a *Decl for the declaration in the package. It returns nil if the declaration does not exist.

func (*Decl) IsConst

func (d *Decl) IsConst() bool

func (*Decl) IsFunc

func (d *Decl) IsFunc() bool

func (*Decl) IsType

func (d *Decl) IsType() bool

func (*Decl) IsVar

func (d *Decl) IsVar() bool

type DeclBlock

type DeclBlock struct {
	Groups DeclGroupList
}

func (*DeclBlock) Decls

func (db *DeclBlock) Decls() DeclList

type DeclBlockList

type DeclBlockList []*DeclBlock

func (DeclBlockList) DeclGroups

func (dbl DeclBlockList) DeclGroups() DeclGroupList

func (DeclBlockList) Decls

func (dbl DeclBlockList) Decls() DeclList

type DeclGroup

type DeclGroup struct {
	Names []Name
	Type  *Type
	// contains filtered or unexported fields
}

func (*DeclGroup) Decls

func (dg *DeclGroup) Decls() DeclList

func (*DeclGroup) IsConst

func (dg *DeclGroup) IsConst() bool

func (*DeclGroup) IsType

func (dg *DeclGroup) IsType() bool

func (*DeclGroup) IsVar

func (dg *DeclGroup) IsVar() bool

type DeclGroupList

type DeclGroupList []*DeclGroup

func (DeclGroupList) Decls

func (dgl DeclGroupList) Decls() DeclList

type DeclList

type DeclList []*Decl

func (DeclList) Sorted

func (dl DeclList) Sorted() DeclList

type Name

type Name string

func (Name) Export

func (n Name) Export() Name

func (Name) Initial

func (n Name) Initial() Name

func (Name) Initials

func (n Name) Initials() Name

func (Name) IsExported

func (n Name) IsExported() bool

func (Name) Unexport

func (n Name) Unexport() Name

type Package

type Package struct {
	All    DeclList
	Consts DeclBlockList
	Funcs  DeclList
	Lookup map[string]*Decl
	Types  DeclBlockList
	Vars   DeclBlockList
}

func LoadPackage

func LoadPackage(path string) (*Package, error)

LoadPackage returns a *Package for the package. It returns an error if the package cannot be loaded.

type Type

type Type struct {
	// contains filtered or unexported fields
}

func (*Type) Constraint

func (t *Type) Constraint() *Type

func (*Type) Fields

func (t *Type) Fields() []*Var

func (*Type) HasReceive

func (t *Type) HasReceive() bool

func (*Type) HasSend

func (t *Type) HasSend() bool

func (*Type) IsAlias

func (t *Type) IsAlias() bool

func (*Type) IsArray

func (t *Type) IsArray() bool

func (*Type) IsBool

func (t *Type) IsBool() bool

func (*Type) IsBoolish

func (t *Type) IsBoolish() bool

func (*Type) IsByte

func (t *Type) IsByte() bool

func (*Type) IsChannel

func (t *Type) IsChannel() bool

func (*Type) IsComplex

func (t *Type) IsComplex() bool

func (*Type) IsComplex128

func (t *Type) IsComplex128() bool

func (*Type) IsComplex64

func (t *Type) IsComplex64() bool

func (*Type) IsComplexish

func (t *Type) IsComplexish() bool

func (*Type) IsFloat

func (t *Type) IsFloat() bool

func (*Type) IsFloat32

func (t *Type) IsFloat32() bool

func (*Type) IsFloat64

func (t *Type) IsFloat64() bool

func (*Type) IsFloatish

func (t *Type) IsFloatish() bool

func (*Type) IsFunc

func (t *Type) IsFunc() bool

func (*Type) IsInt

func (t *Type) IsInt() bool

func (*Type) IsInt16

func (t *Type) IsInt16() bool

func (*Type) IsInt32

func (t *Type) IsInt32() bool

func (*Type) IsInt64

func (t *Type) IsInt64() bool

func (*Type) IsInt8

func (t *Type) IsInt8() bool

func (*Type) IsInteger

func (t *Type) IsInteger() bool

func (*Type) IsInterface

func (t *Type) IsInterface() bool

func (*Type) IsIntish

func (t *Type) IsIntish() bool

func (*Type) IsMap

func (t *Type) IsMap() bool

func (*Type) IsNamed

func (t *Type) IsNamed() bool

func (*Type) IsNumber

func (t *Type) IsNumber() bool

func (*Type) IsPointer

func (t *Type) IsPointer() bool

func (*Type) IsRune

func (t *Type) IsRune() bool

func (*Type) IsRuneish

func (t *Type) IsRuneish() bool

func (*Type) IsSigned

func (t *Type) IsSigned() bool

func (*Type) IsSlice

func (t *Type) IsSlice() bool

func (*Type) IsString

func (t *Type) IsString() bool

func (*Type) IsStringish

func (t *Type) IsStringish() bool

func (*Type) IsStruct

func (t *Type) IsStruct() bool

func (*Type) IsUint

func (t *Type) IsUint() bool

func (*Type) IsUint16

func (t *Type) IsUint16() bool

func (*Type) IsUint32

func (t *Type) IsUint32() bool

func (*Type) IsUint64

func (t *Type) IsUint64() bool

func (*Type) IsUint8

func (t *Type) IsUint8() bool

func (*Type) IsUintptr

func (t *Type) IsUintptr() bool

func (*Type) IsUnsafePointer

func (t *Type) IsUnsafePointer() bool

func (*Type) IsUnsigned

func (t *Type) IsUnsigned() bool

func (*Type) IsUntyped

func (t *Type) IsUntyped() bool

func (*Type) IsUntypedBool

func (t *Type) IsUntypedBool() bool

func (*Type) IsUntypedComplex

func (t *Type) IsUntypedComplex() bool

func (*Type) IsUntypedFloat

func (t *Type) IsUntypedFloat() bool

func (*Type) IsUntypedInt

func (t *Type) IsUntypedInt() bool

func (*Type) IsUntypedNil

func (t *Type) IsUntypedNil() bool

func (*Type) IsUntypedRune

func (t *Type) IsUntypedRune() bool

func (*Type) IsUntypedString

func (t *Type) IsUntypedString() bool

func (*Type) IsVariadic

func (t *Type) IsVariadic() bool

func (*Type) Key

func (t *Type) Key() *Type

func (*Type) Methods

func (t *Type) Methods() []*Var

func (*Type) Name

func (t *Type) Name() Name

func (*Type) Origin

func (t *Type) Origin() *Type

func (*Type) PackageName

func (t *Type) PackageName() string

func (*Type) PackagePath

func (t *Type) PackagePath() string

func (*Type) Params

func (t *Type) Params() []*Var

func (*Type) Receiver

func (t *Type) Receiver() *Var

func (*Type) ReceiverTypeParams

func (t *Type) ReceiverTypeParams() []*Type

func (*Type) Results

func (t *Type) Results() []*Var

func (*Type) Size

func (t *Type) Size() int64

func (*Type) String

func (t *Type) String() string

func (*Type) TypeArgs

func (t *Type) TypeArgs() []*Type

func (*Type) TypeParams

func (t *Type) TypeParams() []*Type

func (*Type) Underlying

func (t *Type) Underlying() *Type

func (*Type) Value

func (t *Type) Value() *Type

type Var

type Var struct {
	Name Name
	Type *Type
}

type VarGroup

type VarGroup struct {
	Names []Name
	Type  *Type
}

Directories

Path Synopsis
cmd

Jump to

Keyboard shortcuts

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