mirror of https://github.com/mattn/go-sqlite3.git
golint
This commit is contained in:
parent
0dba8bb9aa
commit
ecc5105e21
|
@ -3,8 +3,9 @@ package main
|
||||||
import (
|
import (
|
||||||
"database/sql"
|
"database/sql"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/mattn/go-sqlite3"
|
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
|
"github.com/mattn/go-sqlite3"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -29,8 +30,8 @@ func main() {
|
||||||
}
|
}
|
||||||
defer rows.Close()
|
defer rows.Close()
|
||||||
for rows.Next() {
|
for rows.Next() {
|
||||||
var id, full_name, description, html_url string
|
var id, fullName, description, htmlURL string
|
||||||
rows.Scan(&id, &full_name, &description, &html_url)
|
rows.Scan(&id, &fullName, &description, &htmlURL)
|
||||||
fmt.Printf("%s: %s\n\t%s\n\t%s\n\n", id, full_name, description, html_url)
|
fmt.Printf("%s: %s\n\t%s\n\t%s\n\n", id, fullName, description, htmlURL)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue