1234567891011121314151617181920212223242526 |
- package sqlite
- //#include "sqlite.h"
- //#define _GNU_SOURCE
- //#include <stdint.h>
- //extern int64_t uhaha_unixCurrentTimeInt64();
- import "C"
- import (
- "log"
- "os"
- )
- func init() {
- log.SetOutput(os.Stdout)
- log.SetFlags(log.Ldate | log.Ltime | log.Lmicroseconds)
- }
- func Test_SQLite() {
- log.Println("Test_SQLite")
- C.sqlite3_initialize()
- log.Println("C.sqlite3_initialize", "returned")
- x := C.uhaha_unixCurrentTimeInt64()
- log.Println("C.uhaha_unixCurrentTimeInt64", "returned", x)
- C.sqlite3_shutdown()
- log.Println("C.sqlite3_shutdown", "returned")
- }
|