Implemented extern functions
This commit is contained in:
parent
38b573085e
commit
4803b81845
24 changed files with 304 additions and 169 deletions
|
@ -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
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue