Added byte type
This commit is contained in:
@ -49,14 +49,16 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
|
||||
return UInt16
|
||||
case "uint8":
|
||||
return UInt8
|
||||
case "byte":
|
||||
return Byte
|
||||
case "bool":
|
||||
return Bool
|
||||
case "float":
|
||||
return Float
|
||||
case "float64":
|
||||
return Float64
|
||||
case "float32":
|
||||
return Float32
|
||||
case "bool":
|
||||
return Bool
|
||||
case "any":
|
||||
return Any
|
||||
}
|
||||
|
@ -10,11 +10,12 @@ var (
|
||||
Int8 = &Base{name: "int8", size: 1}
|
||||
Float64 = &Base{name: "float64", size: 8}
|
||||
Float32 = &Base{name: "float32", size: 4}
|
||||
String = &Array{Of: Int8}
|
||||
String = &Array{Of: Byte}
|
||||
)
|
||||
|
||||
var (
|
||||
Bool = Int
|
||||
Byte = UInt8
|
||||
Int = Int64
|
||||
Float = Float64
|
||||
UInt = Int
|
||||
|
Reference in New Issue
Block a user