Documentation ¶
Index ¶
- Constants
- func Indent(code string, cnf CodeConfig) string
- func JoinCode(vals ...string) string
- type CGen
- func (cg *CGen) AddNode(node ir.Node) (*Code, error)
- func (c *CGen) Build() (string, error)
- func (c *CGen) CType(typ types.Type, fn ...bool) string
- func (c *CGen) FreeCode(varName string, typ types.Type) string
- func (c *CGen) GetTmp(name string) string
- func (c *CGen) GrabCode(varName string, typ types.Type) string
- func (c *CGen) ZeroValue(t types.Type) string
- type Code
- type CodeConfig
Constants ¶
View Source
const Namespace = "bsharp__"
Variables ¶
This section is empty.
Functions ¶
func Indent ¶
func Indent(code string, cnf CodeConfig) string
Types ¶
type CGen ¶
type CGen struct { Config CodeConfig // contains filtered or unexported fields }
type CodeConfig ¶
func DefaultCodeConfig ¶
func DefaultCodeConfig() CodeConfig
Click to show internal directories.
Click to hide internal directories.