Skip to content
Permalink
Browse files

rename package aux to auxserver

Since we created this package, Go started forbidding aux as a path component for
Windows compatibility.
  • Loading branch information...
stapelberg committed May 6, 2019
1 parent 9955035 commit 5a708e86b93aeefb482f723006b5a08c85fc7686
@@ -11,7 +11,7 @@ import (
"runtime/debug"
"syscall"

"github.com/Debian/debiman/internal/aux"
"github.com/Debian/debiman/internal/auxserver"
"github.com/Debian/debiman/internal/bundled"
"github.com/Debian/debiman/internal/commontmpl"
"github.com/Debian/debiman/internal/redirect"
@@ -56,7 +56,7 @@ func main() {

commonTmpls := commontmpl.MustParseCommonTmpls()
notFoundTmpl := template.Must(commonTmpls.New("notfound").Parse(bundled.Asset("notfound.tmpl")))
server := aux.NewServer(idx, notFoundTmpl, debimanVersion)
server := auxserver.NewServer(idx, notFoundTmpl, debimanVersion)

c := make(chan os.Signal, 1)
signal.Notify(c, syscall.SIGHUP)
@@ -15,7 +15,7 @@ import (
"path/filepath"
"strings"

"github.com/Debian/debiman/internal/aux"
"github.com/Debian/debiman/internal/auxserver"
"github.com/Debian/debiman/internal/bundled"
"github.com/Debian/debiman/internal/commontmpl"
"github.com/Debian/debiman/internal/redirect"
@@ -88,7 +88,7 @@ func main() {

commonTmpls := commontmpl.MustParseCommonTmpls()
notFoundTmpl := template.Must(commonTmpls.New("notfound").Parse(bundled.Asset("notfound.tmpl")))
server := aux.NewServer(idx, notFoundTmpl, debimanVersion)
server := auxserver.NewServer(idx, notFoundTmpl, debimanVersion)

http.HandleFunc("/jump", server.HandleJump)

@@ -1,4 +1,4 @@
package aux
package auxserver

import (
"bytes"
@@ -1,4 +1,4 @@
package aux
package auxserver

import (
"net/http"

0 comments on commit 5a708e8

Please sign in to comment.
You can’t perform that action at this time.