aboutsummaryrefslogtreecommitdiff
path: root/_example/mod_vtable
diff options
context:
space:
mode:
authorPhilip O'Toole <philip.otoole@yahoo.com>2017-06-17 12:02:47 -0700
committerGitHub <noreply@github.com>2017-06-17 12:02:47 -0700
commitb951516ea086ff8c8a97eff7a59f2b95458b0a1c (patch)
tree035930342ee0510d83ab8ee47e4068bdc50247c3 /_example/mod_vtable
parentMerge pull request #1 from mattn/master (diff)
parentMerge pull request #425 from xxr3376/empty-bytes (diff)
downloadgolite-b951516ea086ff8c8a97eff7a59f2b95458b0a1c.tar.gz
golite-b951516ea086ff8c8a97eff7a59f2b95458b0a1c.tar.xz
Merge pull request #2 from mattn/master
Merge upstream
Diffstat (limited to '_example/mod_vtable')
-rw-r--r--_example/mod_vtable/extension.go9
1 files changed, 5 insertions, 4 deletions
diff --git a/_example/mod_vtable/extension.go b/_example/mod_vtable/extension.go
index 69ae2c7..f738af6 100644
--- a/_example/mod_vtable/extension.go
+++ b/_example/mod_vtable/extension.go
@@ -3,8 +3,9 @@ package main
import (
"database/sql"
"fmt"
- "github.com/mattn/go-sqlite3"
"log"
+
+ "github.com/mattn/go-sqlite3"
)
func main() {
@@ -29,8 +30,8 @@ func main() {
}
defer rows.Close()
for rows.Next() {
- var id, full_name, description, html_url string
- rows.Scan(&id, &full_name, &description, &html_url)
- fmt.Printf("%s: %s\n\t%s\n\t%s\n\n", id, full_name, description, html_url)
+ var id, fullName, description, htmlURL string
+ rows.Scan(&id, &fullName, &description, &htmlURL)
+ fmt.Printf("%s: %s\n\t%s\n\t%s\n\n", id, fullName, description, htmlURL)
}
}