mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-04 19:19:44 +00:00
2fd63387c0
When result is needed to have certain type, we should have ability to convert it, with the help of CONVERT opcode.
17 lines
385 B
Go
17 lines
385 B
Go
// Package convert provides functions for type conversion.
|
|
package convert
|
|
|
|
// ToInteger converts it's argument to an Integer.
|
|
func ToInteger(v interface{}) int64 {
|
|
return 0
|
|
}
|
|
|
|
// ToByteArray converts it's argument to a ByteArray.
|
|
func ToByteArray(v interface{}) []byte {
|
|
return nil
|
|
}
|
|
|
|
// ToBool converts it's argument to a Boolean.
|
|
func ToBool(v interface{}) bool {
|
|
return false
|
|
}
|