From 5b1175ef066f9fe80eee84c0ba5d0dbea72d09a6 Mon Sep 17 00:00:00 2001 From: Yasuhiro Matsumoto Date: Sun, 5 Mar 2017 00:46:52 +0900 Subject: [PATCH] not use underscore --- sqlite3_test.go | 4 ++-- 1 file 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