17 // hello world, the web server
18 func HelloServer(c *http.Conn, req *http.Request) {
20 io.WriteString(c, "<html><form method=post><input type=\"input\"><input type=\"submit\" name=\"go\" value=\"go\"></html>\n");
22 // fucking go, i just wanna consume the incoming data, but it forces me to do something with it... cunt of a language
24 fmt.Printf("%d\n", k);
29 //var Dbconn *dbibridge.DBIConnection;
31 //Dbconn = dbibridge.DBICreate();
33 //dbibridge.DBIConnect(Dbconn, "mysql", "localhost", "root", "password", "zm");
34 //dbibridge.ExecSQL(Dbconn, "create table asdf (asdf int)");
35 //dbibridge.DBIDisconnect(Dbconn);
37 comin = make(chan int);
38 comout = make(chan int);
40 bc := benchcontroller.CreateController();
41 go benchcontroller.MainLoop(bc, comout, comin);
43 http.Handle("/hello", http.HandlerFunc(HelloServer));
44 err := http.ListenAndServe(":12345", nil);
46 panic("ListenAndServe: ", err.String())