blob: 3181eb4209505e7925a947490e41fdd685e37e66 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package main
import (
//"encoding/json"
)
func insertHost() {
h := Host{Url: "http://www.iamfabulous.de/", Monitored: true, Private: false}
Db.Create(&h)
h = Host{Url: "https://iamfabulousadsfadfdsf.de/", Monitored: true, Private: false}
Db.Create(&h)
// c := pool.Get()
// defer c.Close()
/*
host := []Host{}
Db.Find(&host)
js, _ := json.Marshal(host)
c.Do("SET", cache_prefix, js)
*/
}
|