Documentation ¶
Index ¶
- Constants
- Variables
- func Deferfunc()
- func Elem(T string) (string, string, bool)
- func FindU(dir string) ([]string, error)
- func GenerateGenericTypes(BaseName string, ActualType []string) string
- func GeneratePackageSymbol(packageName string, Name string) string
- func Generate_mempool_Name(linenum int, filename string) string
- func IsNil(n interface{}) bool
- func IsNoType(kind enum.Symbol) bool
- func IsPtr(typ string) bool
- func Is_In_AutoFree(name string) bool
- func MoveFile(oldname, newname string) error
- func MustErr(err error)
- func NoExtBase(f string) string
- func PutMapSet(m map[string]struct{})
- func ReadAllLine(r *bufio.Reader) ([]string, error)
- func ReadLine(r *bufio.Reader) (string, bool, error)
- func Ret_no_lea(s string) string
- func Ret_type_no_lea(s string) (string, int)
- func Split_package_name(s string) (string, string)
- func Typ_is_equal(src1 string, src2 string) bool
- type StdInfo
- type WaitGroup
Constants ¶
View Source
const Is_Enable_amd64 = false
Variables ¶
View Source
var Debug = false
View Source
var Ext = ""
View Source
var MapSet = sync.Pool{ New: func() interface{} { return make(map[string]struct{}) }, }
View Source
var StdOne = make(map[string]StdInfo, 0)
Functions ¶
func GenerateGenericTypes ¶
GenerateGenericTypes 生成已经实际实例化的泛型类型名
func GeneratePackageSymbol ¶
GeneratePackageSymbol 生成包含包名的符号
func Generate_mempool_Name ¶
Generate_mempool_Name 生成 自动释放快 的实现 内存池变量名 - linenum是行号 - filename是文件名
func Split_package_name ¶
Split_package_name 返回去除包名的字符串
Types ¶
type WaitGroup ¶
type WaitGroup struct { Thread bool // contains filtered or unexported fields }
WaitGroup 用来管理一组同时以并发或串行执行的函数
- 如果以串行执行,不需要调用 WaitGroup.Done
- 如果以并发执行,需要自行调用 WaitGroup.Done
func NewWaitGroup ¶
NewWaitGroup 从 sync.Pool 中获取一个 *WaitGroup
func (*WaitGroup) Go ¶
func (wg *WaitGroup) Go(f func())
Go 执行一个函数,该函数没有参数,该函数无需调用 WaitGroup.Add
- 如果以串行执行,调用传入函数,执行完毕后返回
- 如果以并发执行,安排传入函数在一个goroutine执行,然后直接返回
func (*WaitGroup) GoI ¶
GoI 执行一个函数,该函数接受一个int型参数,该函数无需调用 WaitGroup.Add
- 如果以串行执行,调用传入函数,执行完毕后返回
- 如果以并发执行,安排传入函数在一个goroutine执行,然后直接返回
func (*WaitGroup) GoI2 ¶
GoI2 执行一个函数,该函数接受两个int型参数,该函数无需调用 WaitGroup.Add
- 如果以串行执行,调用传入函数,执行完毕后返回
- 如果以并发执行,安排传入函数在一个goroutine执行,然后直接返回
Source Files ¶
Click to show internal directories.
Click to hide internal directories.