*: replace interface{}
with any
keyword
Everywhere including examples, external interop APIs, bindings generators code and in other valuable places. A couple of `interface{}` usages are intentionally left in the CHANGELOG.md, documentation and tests.
This commit is contained in:
parent
83545b8451
commit
6b21ad9922
199 changed files with 1256 additions and 1231 deletions
|
@ -27,12 +27,12 @@ func FromAddress(address string) interop.Hash160 {
|
|||
// Equals compares a with b and will return true when a and b are equal. It's
|
||||
// implemented as an EQUAL VM opcode, so the rules of comparison are those
|
||||
// of EQUAL.
|
||||
func Equals(a, b interface{}) bool {
|
||||
func Equals(a, b any) bool {
|
||||
return neogointernal.Opcode2("EQUAL", a, b).(bool)
|
||||
}
|
||||
|
||||
// Remove removes element with index i from slice.
|
||||
// This is done in place and slice must have type other than `[]byte`.
|
||||
func Remove(slice interface{}, i int) {
|
||||
func Remove(slice any, i int) {
|
||||
neogointernal.Opcode2NoReturn("REMOVE", slice, i)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue