Implemented extern functions
This commit is contained in:
@ -31,6 +31,8 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
|
||||
switch name {
|
||||
case "Any":
|
||||
return Any
|
||||
case "Bool":
|
||||
return Bool
|
||||
case "Int":
|
||||
return Int
|
||||
case "Int64":
|
||||
@ -47,6 +49,8 @@ func ByName(name string, pkg string, structs map[string]*Struct) Type {
|
||||
return Float64
|
||||
case "Float32":
|
||||
return Float32
|
||||
case "UInt":
|
||||
return UInt
|
||||
}
|
||||
|
||||
typ, exists := structs[pkg+"."+name]
|
||||
|
@ -13,6 +13,8 @@ var (
|
||||
)
|
||||
|
||||
var (
|
||||
Bool = Int
|
||||
Int = Int64
|
||||
Float = Float64
|
||||
UInt = Int
|
||||
)
|
||||
|
Reference in New Issue
Block a user