func sqlVersion() string { cp := C.sqlite3_libversion() if cp == nil { // The call can't really fail since it returns // a string constant, but let's be safe... sqlPanic("can't get library version") } return C.GoString(cp) }
// Return SQLite library Version information. func Version() (libVersion string, libVersionNumber int, sourceId string) { libVersion = C.GoString(C.sqlite3_libversion()) libVersionNumber = int(C.sqlite3_libversion_number()) sourceId = C.GoString(C.sqlite3_sourceid()) return libVersion, libVersionNumber, sourceId }
func Version() string { p := C.sqlite3_libversion() return C.GoString(p) }
func main() { version := C.GoString(C.sqlite3_libversion()) fmt.Println("libsqlite3 version", version) }
// Version returns the SQLite version as a string in the format "X.Y.Z[.N]". // [http://www.sqlite.org/c3ref/libversion.html] func Version() string { if initErr != nil { return "" } return goStr(C.sqlite3_libversion()) }
func LibVersion() (version string) { cver := C.sqlite3_libversion() version = C.GoString(cver) return }
// LibVersion returns the version of the SQLite3 engine. func LibVersion() string { return C.GoString(C.sqlite3_libversion()) }