package main import ( "fmt" "strings" "net/http" "go.wit.com/log" ) /* func indexHtml(w http.ResponseWriter) { realurl = "https://" + realurl log.Info("go repo =", gourl, "real url =", realurl) fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") // fmt.Fprintln(w, fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, "Nothing to see here. Please move along.\"") fmt.Fprintln(w, "") fmt.Fprintln(w, "") } */ /* indexHeader(w) indexBodyStart(w) indexBodyEnd(w) */ func indexHeader(w http.ResponseWriter) { fmt.Fprintln(w, "") fmt.Fprintln(w, "") fmt.Fprintln(w, " ") // fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, "") } func indexBodyStart(w http.ResponseWriter) { // fmt.Fprintln(w, " fmt.Fprintln(w, "") fmt.Fprintln(w, "
") fmt.Fprintln(w, "
") fmt.Fprintln(w, " ") // fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") // fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, "") } func insertHTMLnote(w http.ResponseWriter, i int, parts []string) { log.Info("comment # line:", i, strings.Join(parts, " ")) fmt.Fprintln(w, " ") } func indexBodyScanConfig(w http.ResponseWriter) { log.Info("indexBodyScanConfig() START") for i, line := range configfile { // log.Info("config file line:", i, line) fields := strings.Fields(line) if (len(fields) == 0) { continue } if (fields[0] == "#") { insertHTMLnote(w, i, fields[0:]) // log.Info("comment # line:", i, line) continue } if (len(fields) == 2) { log.Info("short file line:", i, line) gourl := fields[0] giturl := fields[1] indexBodyRepo(w, gourl, giturl, "") continue } log.Info("config file line:", i, line) } log.Info("indexBodyScanConfig() END") } func indexBodyRepo(w http.ResponseWriter, gourl string, giturl string, github string) { // fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") if github == "" { fmt.Fprintln(w, " ") } else { fmt.Fprintln(w, " ") } fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") fmt.Fprintln(w, "") } func indexBodyEnd(w http.ResponseWriter) { // fmt.Fprintln(w, " fmt.Fprintln(w, " ") fmt.Fprintln(w, "
Packagego getAuthoritative sources (IPv6 only)github mirrorDocumentation

", strings.Join(parts, " "), "

log/ (needed for the gui)
" + gourl + " " + gourl + " " + giturl + " github.com/wit-go/log \"pkg.go.dev
") fmt.Fprintln(w, "
") fmt.Fprintln(w, "
") fmt.Fprintln(w, " ") fmt.Fprintln(w, " ") } /*
log/ (needed for the gui)
log go.wit.com/log git.wit.org/wit/log github.com/wit-go/log Go Reference
gui/ packages
gui/gui go.wit.com/gui/gui git.wit.org/gui/gui github.com/wit-go/gui Go Reference gui/widget go.wit.com/gui/widget git.wit.org/gui/widget github.com/wit-go/widget Go Reference gui/gadgets go.wit.com/gui/gadgets git.wit.org/gui/gadgets github.com/wit-go/gadgets Go Reference gui/toolkits go.wit.com/gui/toolkits git.wit.org/gui/toolkits github.com/wit-go/toolkits Go Reference gui/debugger go.wit.com/gui/debugger git.wit.org/gui/debugger github.com/wit-go/debugger Go Reference gui/examples go.wit.com/gui/examples git.wit.org/gui/examples github.com/wit-go/examples gui/digitalocean go.wit.com/gui/digitalocean git.wit.org/gui/digitalocean Go Reference gui/cloudflare go.wit.com/gui/cloudflare git.wit.org/gui/cloudflare Go Reference
Applications
control-panel-dns go.wit.com/apps/control-panel-dns git.wit.org/jcarr/control-panel-dns Go Reference control-panel-digitalocean go.wit.com/apps/control-panel-digitalocean git.wit.org/wit/control-panel-digitalocean Go Reference control-panel-cloudflare go.wit.com/apps/control-panel-cloudflare git.wit.org/wit/control-panel-cloudflare Go Reference
Support packages
arg go.wit.com/arg git.wit.org/wit/arg github.com/wit-go/go-arg Go Reference spew go.wit.com/spew git.wit.org/wit/spew github.com/wit-go/spew Go Reference dnssec go.wit.com/dnssec git.wit.org/wit/dnssec github.com/wit-go/dnssec Go Reference shell go.wit.com/shell git.wit.org/wit/shell github.com/wit-go/shell Go Reference */