@@ -607,10 +607,9 @@ func (c *SQLiteConn) RegisterAuthorizer(callback func(int, string, string, strin
607607// RegisterFunc makes a Go function available as a SQLite function.
608608//
609609// 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.
614613//
615614// The function can additionally be variadic, as long as the type of
616615// the variadic argument is one of the above.
@@ -620,7 +619,7 @@ func (c *SQLiteConn) RegisterAuthorizer(callback func(int, string, string, strin
620619// optimizations in its queries.
621620//
622621// 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 {
624623 var fi functionInfo
625624 fi .f = reflect .ValueOf (impl )
626625 t := fi .f .Type ()
@@ -702,7 +701,7 @@ func sqlite3CreateFunction(db *C.sqlite3, zFunctionName *C.char, nArg C.int, eTe
702701// return an error in addition to their other return values.
703702//
704703// 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 {
706705 var ai aggInfo
707706 ai .constructor = reflect .ValueOf (impl )
708707 t := ai .constructor .Type ()
0 commit comments