Documentation ¶
Overview ¶
Package cl compiles Go+ syntax trees (ast).
Index ¶
Constants ¶
View Source
const ( DbgFlagLoad = 1 << iota DbgFlagLookup DbgFlagAll = DbgFlagLoad | DbgFlagLookup )
Variables ¶
This section is empty.
Functions ¶
func NewPackage ¶ added in v0.7.0
NewPackage creates a Go+ package instance.
func SetDisableRecover ¶ added in v1.0.0
func SetDisableRecover(disableRecover bool)
Types ¶
type Config ¶ added in v0.9.0
type Config struct { // WorkingDir is the directory in which to run gop compiler. WorkingDir string // TargetDir is the directory in which to generate Go files. TargetDir string // Fset provides source position information for syntax trees and types. // If Fset is nil, Load will use a new fileset, but preserve Fset's value. Fset *token.FileSet // LookupClass lookups a class by specified file extension. LookupClass func(ext string) (c *Class, ok bool) // An Importer resolves import paths to Packages. Importer types.Importer // NoFileLine = true means not to generate file line comments. NoFileLine bool // RelativePath = true means to generate file line comments with relative file path. RelativePath bool }
Config of loading Go+ packages.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.