summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Carr <[email protected]>2024-11-17 06:26:01 -0600
committerJeff Carr <[email protected]>2024-11-17 06:26:01 -0600
commit014c9d5e3a408cb2b795acb994847b9b0a8b723a (patch)
tree0cd8c41a5dff8098ccb658592b0f107e1b2a9ca6
parent47d10c231f09ee5d4dcb4e4c27c7f027c1f792ae (diff)
remove old git.wit.org referencesv0.22.9v0.22.8v0.22.7v0.22.6v0.22.10
-rw-r--r--dumpClient.go2
-rw-r--r--main.go10
-rw-r--r--repoHTML.go24
-rw-r--r--resources/index.html200
-rw-r--r--resources/repomap10
-rw-r--r--resources/test.html11
6 files changed, 1 insertions, 256 deletions
diff --git a/dumpClient.go b/dumpClient.go
index 6c5c1af..4d3f6c1 100644
--- a/dumpClient.go
+++ b/dumpClient.go
@@ -105,8 +105,6 @@ func registerClient(f *os.File, r *http.Request) bool {
if name == "Gopath" {
gopath = value
}
- // Giturl https://git.wit.org/gui/go-gui-toolkits.git
- // Headers: Gopath
}
}
diff --git a/main.go b/main.go
index 40a4cbc..8037a50 100644
--- a/main.go
+++ b/main.go
@@ -65,10 +65,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
indexBodyEnd(w)
return
}
- if tmp == "/old" {
- writeFile(w, "index.html")
- return
- }
if tmp == "/install.sh" {
writeFile(w, "install.sh")
return
@@ -91,10 +87,6 @@ func okHandler(w http.ResponseWriter, r *http.Request) {
}
return
}
- if tmp == "/test" {
- writeFile(w, "test.html")
- return
- }
if tmp == "/goReference.svg" {
writeFile(w, "goReference.svg")
return
@@ -180,7 +172,7 @@ func badurl(w http.ResponseWriter, badurl string) {
fmt.Fprintln(w, " IPv4 IS NOT SUPPORTED<br>")
fmt.Fprintln(w, " MANY OF THESE REPOS REQUIRE IPv6.<br>")
fmt.Fprintln(w, " <br>")
- fmt.Fprintln(w, " bad url", badurl, "<a href=\"https://git.wit.org/\">redirecting</a>")
+ fmt.Fprintln(w, " bad url", badurl, "<a href=\"https://go.wit.com/\">redirecting</a>")
fmt.Fprintln(w, " </body>")
fmt.Fprintln(w, "</html>")
}
diff --git a/repoHTML.go b/repoHTML.go
index 9985e19..3f69612 100644
--- a/repoHTML.go
+++ b/repoHTML.go
@@ -12,20 +12,6 @@ import (
"go.wit.com/log"
)
-/*
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="go-import" content="go.wit.com/gui/gui git https://git.wit.org/gui/gui">
- <meta name="go-source" content="go.wit.com/gui/gui https://git.wit.org/gui/gui https://git.wit.org/gui/tree/master{/dir} https://git.wit.org/gui/gui/tree/master{/dir}/{file}#L{line}">
- <meta http-equiv="refresh" content="0; url=https://git.wit.org/gui/gui">
- </head>
- <body>
- Nothing to see here. Please <a href="https://git.wit.org/gui/gui">move along</a>.
- </body>
-</html>
-*/
-
func repoHTML(w http.ResponseWriter, gourl string, realurl string) {
realurl = "https://" + realurl
log.Info("go repo =", gourl, "real url =", realurl)
@@ -42,16 +28,6 @@ func repoHTML(w http.ResponseWriter, gourl string, realurl string) {
fmt.Fprintln(w, "Nothing to see here. Please <a href=\""+realurl+"\">move along</a>.\"")
fmt.Fprintln(w, "</body>")
fmt.Fprintln(w, "</html>")
-
- /*
- var tmp string
- tmp = r.URL.String()
- if tmp == "/gui" {
- findFile(w)
- return
- }
- fmt.Fprintln(w, "OK")
- */
}
func findkey(url string) (string, string) {
diff --git a/resources/index.html b/resources/index.html
deleted file mode 100644
index 85aa2a1..0000000
--- a/resources/index.html
+++ /dev/null
@@ -1,200 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <link rel="stylesheet" href="skeleton.v2.css" />
- <style>
- #footer {
- position: fixed;
- padding: 1% 0% 1% 0%; /* top left bottom right */
- bottom: 0;
- width: 100%;
- /* Height of the footer*/
- height: 40px;
- background: lightgrey;
- }
- </style>
- </head>
-</html>
- <body>
- <div class="container">
- <div class="row">
- <table class="u-full-width">
- <thead>
- <tr>
- <th>Package</th>
- <th>go get</th>
- <th>Authoritative sources (IPv6 only)</th>
- <th>github mirror</th>
- <th>Documentation</th>
- </tr>
- </thead>
- <tbody>
-
-
- <tr> <td><h5>log/ (needed for the gui)</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <tr>
- <td>log</td>
- <td> <a href="//go.wit.com/log">go.wit.com/log</a></td>
- <td> <a href="//git.wit.org/wit/log">git.wit.org/wit/log</a></td>
- <td> <a href="//github.com/wit-go/log">github.com/wit-go/log</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/log"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
-
- <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>
-
- <tr> <td><h5>gui/ packages</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <tr>
- <td>gui/gui</td>
- <td> <a href="//go.wit.com/gui/gui">go.wit.com/gui/gui</a></td>
- <td> <a href="//git.wit.org/gui/gui">git.wit.org/gui/gui</a></td>
- <td> <a href="//github.com/wit-go/gui">github.com/wit-go/gui</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/gui"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/widget</td>
- <td> <a href="//go.wit.com/gui/widget">go.wit.com/gui/widget</a></td>
- <td> <a href="//git.wit.org/gui/widget">git.wit.org/gui/widget</a></td>
- <td> <a href="//github.com/wit-go/widget">github.com/wit-go/widget</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/widget"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/gadgets</td>
- <td> <a href="//go.wit.com/gui/gadgets">go.wit.com/gui/gadgets</a></td>
- <td> <a href="//git.wit.org/gui/gadgets">git.wit.org/gui/gadgets</a></td>
- <td> <a href="//github.com/wit-go/gadgets">github.com/wit-go/gadgets</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/gadgets"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/toolkits</td>
- <td> <a href="//go.wit.com/gui/toolkits">go.wit.com/gui/toolkits</a></td>
- <td> <a href="//git.wit.org/gui/toolkits">git.wit.org/gui/toolkits</a></td>
- <td> <a href="//github.com/wit-go/toolkits">github.com/wit-go/toolkits</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/toolkits"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/debugger</td>
- <td> <a href="//go.wit.com/gui/debugger">go.wit.com/gui/debugger</a></td>
- <td> <a href="//git.wit.org/gui/debugger">git.wit.org/gui/debugger</a></td>
- <td> <a href="//github.com/wit-go/debugger">github.com/wit-go/debugger</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/debugger"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/examples</td>
- <td> <a href="//go.wit.com/gui/examples">go.wit.com/gui/examples</a></td>
- <td> <a href="//git.wit.org/gui/examples">git.wit.org/gui/examples</a></td>
- <td> <a href="//github.com/wit-go/examples">github.com/wit-go/examples</a></td>
- <td> </td>
- </tr>
- <tr>
- <td>gui/digitalocean</td>
- <td> <a href="//go.wit.com/gui/digitalocean">go.wit.com/gui/digitalocean</a></td>
- <td> <a href="//git.wit.org/gui/digitalocean">git.wit.org/gui/digitalocean</a></td>
- <td> </td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/digitalocean"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>gui/cloudflare</td>
- <td> <a href="//go.wit.com/gui/cloudflare">go.wit.com/gui/cloudflare</a></td>
- <td> <a href="//git.wit.org/gui/cloudflare">git.wit.org/gui/cloudflare</a></td>
- <td> </td>
- <td> <a href="//pkg.go.dev/go.wit.com/gui/cloudflare"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
-
- <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <tr> <td><h5>Applications</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <tr>
- <td>control-panel-dns</td>
- <td> <a href="//go.wit.com/apps/control-panel-dns">go.wit.com/apps/control-panel-dns</a></td>
- <td> <a href="//git.wit.org/jcarr/control-panel-dns">git.wit.org/jcarr/control-panel-dns</a></td>
- <td></td>
- <td> <a href="//pkg.go.dev/go.wit.com/apps/control-panels-dns"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>control-panel-digitalocean</td>
- <td> <a href="//go.wit.com/apps/control-panel-digitalocean">go.wit.com/apps/control-panel-digitalocean</a></td>
- <td> <a href="//git.wit.org/wit/control-panel-digitalocean">git.wit.org/wit/control-panel-digitalocean</a></td>
- <td></td>
- <td> <a href="//pkg.go.dev/go.wit.com/apps/control-panel-digitalocean"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>control-panel-cloudflare</td>
- <td> <a href="//go.wit.com/apps/control-panel-cloudflare">go.wit.com/apps/control-panel-cloudflare</a></td>
- <td> <a href="//git.wit.org/wit/control-panel-cloudflare">git.wit.org/wit/control-panel-cloudflare</a></td>
- <td></td>
- <td> <a href="//pkg.go.dev/go.wit.com/control-panels/cloudflare"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
-
-<!--
- <tr>
- <td>control-panel-cloudflare</td>
- <td> <a href="//go.wit.com/control-panel-cloudflare">go.wit.com/control-panel-cloudflare</a></td>
- <td> <a href="//git.wit.org/wit/control-panel-cloudflare">git.wit.org/wit/control-panel-cloudflare</a></td>
- <td> <a href="//github.com/wit-go/control-panel-cloudflare">github.com/wit-go/control-panel-cloudflare</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/control-panel-cloudflare"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
--->
-
- <tr> <td></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <tr> <td><h5>Support packages</h5></td> <td></td> <td></td> <td></td> <td></td> </tr>
- <!--
- <tr>
- <td>go-arg</td>
- <td> <a href="//go.wit.com/arg">go.wit.com/arg</a></td>
- <td> <a href="//git.wit.org/gui/arg">git.wit.org/gui/arg</a></td>
- <td> <a href="//github.com/wit-go/shell">github.com/alexflint/go-arg</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/shell"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- -->
- <tr>
- <td>arg</td>
- <td> <a href="//go.wit.com/arg">go.wit.com/arg</a></td>
- <td> <a href="//git.wit.org/wit/arg">git.wit.org/wit/arg</a></td>
- <td> <a href="//github.com/wit-go/go-arg">github.com/wit-go/go-arg</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/arg"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>spew</td>
- <td> <a href="//go.wit.com/spew">go.wit.com/spew</a></td>
- <td> <a href="//git.wit.org/wit/spew">git.wit.org/wit/spew</a></td>
- <td> <a href="//github.com/wit-go/spew">github.com/wit-go/spew</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/spew"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
- <tr>
- <td>dnssec</td>
- <td> <a href="//go.wit.com/dnssec">go.wit.com/dnssec</a></td>
- <td> <a href="//git.wit.org/wit/dnssec">git.wit.org/wit/dnssec</a></td>
- <td> <a href="//github.com/wit-go/dnssec">github.com/wit-go/dnssec</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/dnssec"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
-
- <tr>
- <td>shell</td>
- <td> <a href="//go.wit.com/shell">go.wit.com/shell</a></td>
- <td> <a href="//git.wit.org/wit/shell">git.wit.org/wit/shell</a></td>
- <td> <a href="//github.com/wit-go/shell">github.com/wit-go/shell</a></td>
- <td> <a href="//pkg.go.dev/go.wit.com/shell"> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
-
-<!--
- <tr>
- <td></td>
- <td> <a href=""></a> </td>
- <td> <a href=""> <img src="goReference.svg" alt="Go Reference" /> </a> </td>
- </tr>
--->
-
-
- </tbody>
- </table>
- </div>
- </div>
- <!--
- <center>
- <div id="footer">
- simple go git repo list like <a href=http://go.uber.org/>go.uber.org</a><p>
- </div>
- </center>
- -->
-
- </body>
-</html>
diff --git a/resources/repomap b/resources/repomap
deleted file mode 100644
index 938f13f..0000000
--- a/resources/repomap
+++ /dev/null
@@ -1,10 +0,0 @@
-# sample gowebd package mappings
-
-go.wit.com/gui git.wit.org/gui/gui The GUI API intended for Control Panels
-go.wit.com/widget git.wit.org/gui/widget Primitive Definitions for Buttons, Dropdowns, etc.
-
-# Tutorials
-
-go.wit.com/apps/helloworld git.wit.org/gui/helloworld A simple Demo
-go.wit.com/apps/basicwindow git.wit.org/jcarr/basicwindow A bit more of a Demo
-go.wit.com/apps/gadgetwindow git.wit.org/jcarr/gadgetwindow A more complicated Demo used for debugging the toolkits
diff --git a/resources/test.html b/resources/test.html
deleted file mode 100644
index c9b9f10..0000000
--- a/resources/test.html
+++ /dev/null
@@ -1,11 +0,0 @@
-<!DOCTYPE html>
-<html>
- <head>
- <meta name="go-import" content="go.wit.com/gui/gui git https://git.wit.org/gui/gui">
- <meta name="go-source" content="go.wit.com/gui/gui https://git.wit.org/gui/gui https://git.wit.org/gui/tree/master{/dir} https://git.wit.org/gui/gui/tree/master{/dir}/{file}#L{line}">
- <meta http-equiv="refresh" content="0; url=https://git.wit.org/gui/gui">
- </head>
- <body>
- Nothing to see here. Please <a href="https://git.wit.org/gui/gui">move along</a>.
- </body>
-</html>