@@ -607,10 +607,9 @@ func (c *SQLiteConn) RegisterAuthorizer(callback func(int, string, string, strin
607
607
// RegisterFunc makes a Go function available as a SQLite function.
608
608
//
609
609
// The Go function can have arguments of the following types: any
610
- // numeric type except complex, bool, []byte, string and
611
- // interface{}. interface{} arguments are given the direct translation
612
- // of the SQLite data type: int64 for INTEGER, float64 for FLOAT,
613
- // []byte for BLOB, string for TEXT.
610
+ // numeric type except complex, bool, []byte, string and any.
611
+ // any arguments are given the direct translation of the SQLite data type:
612
+ // int64 for INTEGER, float64 for FLOAT, []byte for BLOB, string for TEXT.
614
613
//
615
614
// The function can additionally be variadic, as long as the type of
616
615
// the variadic argument is one of the above.
@@ -620,7 +619,7 @@ func (c *SQLiteConn) RegisterAuthorizer(callback func(int, string, string, strin
620
619
// optimizations in its queries.
621
620
//
622
621
// See _example/go_custom_funcs for a detailed example.
623
- func (c * SQLiteConn ) RegisterFunc (name string , impl interface {} , pure bool ) error {
622
+ func (c * SQLiteConn ) RegisterFunc (name string , impl any , pure bool ) error {
624
623
var fi functionInfo
625
624
fi .f = reflect .ValueOf (impl )
626
625
t := fi .f .Type ()
@@ -702,7 +701,7 @@ func sqlite3CreateFunction(db *C.sqlite3, zFunctionName *C.char, nArg C.int, eTe
702
701
// return an error in addition to their other return values.
703
702
//
704
703
// See _example/go_custom_funcs for a detailed example.
705
- func (c * SQLiteConn ) RegisterAggregator (name string , impl interface {} , pure bool ) error {
704
+ func (c * SQLiteConn ) RegisterAggregator (name string , impl any , pure bool ) error {
706
705
var ai aggInfo
707
706
ai .constructor = reflect .ValueOf (impl )
708
707
t := ai .constructor .Type ()
0 commit comments