package server import ( "encoding/json" "io" ) var ( index_0 = []byte(`Dispatch
`) ) func renderIndex(w io.Writer, data interface{}) { w.Write(index_0) w.Write([]byte(files[1].Path)) w.Write(index_1) json.NewEncoder(w).Encode(data) w.Write(index_2) w.Write([]byte(files[0].Path)) w.Write(index_3) }