diff options
author | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-03-05 00:46:52 +0900 |
---|---|---|
committer | Yasuhiro Matsumoto <mattn.jp@gmail.com> | 2017-03-05 00:46:52 +0900 |
commit | 5b1175ef066f9fe80eee84c0ba5d0dbea72d09a6 (patch) | |
tree | 391f23ff397c8c0c9bd687c2561d09c20f007ffc | |
parent | rename function (diff) | |
download | golite-5b1175ef066f9fe80eee84c0ba5d0dbea72d09a6.tar.gz golite-5b1175ef066f9fe80eee84c0ba5d0dbea72d09a6.tar.xz |
not use underscore
-rw-r--r-- | sqlite3_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite3_test.go b/sqlite3_test.go index 8efb409..e844f82 100644 --- a/sqlite3_test.go +++ b/sqlite3_test.go @@ -1239,14 +1239,14 @@ var customFunctionOnce sync.Once func BenchmarkCustomFunctions(b *testing.B) { customFunctionOnce.Do(func() { - custom_add := func(a, b int64) int64 { + customAdd := func(a, b int64) int64 { return a + b } sql.Register("sqlite3_BenchmarkCustomFunctions", &SQLiteDriver{ ConnectHook: func(conn *SQLiteConn) error { // Impure function to force sqlite to reexecute it each time. - if err := conn.RegisterFunc("custom_add", custom_add, false); err != nil { + if err := conn.RegisterFunc("custom_add", customAdd, false); err != nil { return err } return nil |