remove test data
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
c5bd1c5707
commit
9028fb513f
12
web.go
12
web.go
|
|
@ -1,7 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
|
||||||
"html/template"
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
)
|
)
|
||||||
|
|
@ -120,16 +119,6 @@ h1 {
|
||||||
`
|
`
|
||||||
|
|
||||||
func (w *Web) ListenAndServe(addr string) {
|
func (w *Web) ListenAndServe(addr string) {
|
||||||
w.Messages.Add(Message{
|
|
||||||
Content: "2137 papiez",
|
|
||||||
Username: "weeeoefka",
|
|
||||||
PKShort: "23daa6f",
|
|
||||||
})
|
|
||||||
w.Messages.Add(Message{
|
|
||||||
Content: "2137 papiez lorem ipsum dolan sit amet saldkjaksjdf sdkjf slkdj flskjdf lkjsdlkfj ",
|
|
||||||
Username: "weeeoe",
|
|
||||||
PKShort: "23daa6f",
|
|
||||||
})
|
|
||||||
tmpl := template.Must(template.New("tmpl").Parse(siteTemplate))
|
tmpl := template.Must(template.New("tmpl").Parse(siteTemplate))
|
||||||
http.HandleFunc("/", func(rw http.ResponseWriter, r *http.Request) {
|
http.HandleFunc("/", func(rw http.ResponseWriter, r *http.Request) {
|
||||||
tmpl.Execute(rw, map[string]interface{}{
|
tmpl.Execute(rw, map[string]interface{}{
|
||||||
|
|
@ -137,7 +126,6 @@ func (w *Web) ListenAndServe(addr string) {
|
||||||
"Name": w.SiteName,
|
"Name": w.SiteName,
|
||||||
"Addr": w.SSHAddr,
|
"Addr": w.SSHAddr,
|
||||||
})
|
})
|
||||||
fmt.Println(w.SSHAddr)
|
|
||||||
})
|
})
|
||||||
http.ListenAndServe(addr, nil)
|
http.ListenAndServe(addr, nil)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue