// im a web connector package main import ( "http"; "io"; "./dbibridge"; ) // hello world, the web server func HelloServer(c *http.Conn, req *http.Request) { io.WriteString(c, "
\n"); } func main() { var Dbconn *dbibridge.DBConnection; Dbconn = dbibridge.DBICreate(); dbibridge.DBIConnect(Dbconn, "mysql", "localhost", "root", "password", "zm"); dbibridge.ExecSQL(Dbconn, "create table asdf (asdf int)"); dbibridge.DBIDisconnect(Dbconn); //http.Handle("/hello", http.HandlerFunc(HelloServer)); //err := http.ListenAndServe(":12345", nil); //if err != nil { ////panic("ListenAndServe: ", err.String()) //} }