Documentation ¶
Index ¶
Constants ¶
View Source
const ( // SymbolUser 用戶定義的 型別 SymbolUser = 0 // SymbolCore 系統型別 SymbolCore = 1 )
View Source
const ( // Write8 byte bool Write8 = 1 // Write16 int16 uint16 Write16 = 2 // Write32 float32 int32 uint32 Write32 = 3 // Write64 float64 int64 uint64 Write64 = 4 // WriteLength bytes strings type repeat WriteLength = 5 // WriteBits bit repeat WriteBits = 6 )
View Source
const MaxFieldID = 0x1FFF
MaxFieldID 最大 id
Variables ¶
This section is empty.
Functions ¶
func SetErrorFilename ¶
SetErrorFilename 設置 錯誤
func ToFieldName ¶
ToFieldName 驗證名稱 並返回 標準名稱
func ToPackageName ¶
ToPackageName 驗證包名 並返回 標準名稱
Types ¶
type EnumSymbol ¶
EnumSymbol 枚舉 符號信息
type SortType ¶
type SortType []*Type
SortType 實現 排序
type Symbol ¶
type Symbol interface { Package() string Name() string IsRepeat() bool Core() int IsCore() bool IsString() bool IsBool() bool IsEnum() bool IsClass() bool SetType(t *Type) GetType() *Type // 返回 寫入類型 WriteType() uint8 WriteString() string }
Symbol 符號接口
func NewCoreSymbol ¶
NewCoreSymbol 創建 符號
Source Files ¶
Click to show internal directories.
Click to hide internal directories.