Skip to content

Commit

Permalink
various changes to compile with go 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Checksum committed Jan 19, 2019
1 parent 7bdbf1b commit 14b90b3
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 27 deletions.
20 changes: 0 additions & 20 deletions glide.yaml

This file was deleted.

12 changes: 12 additions & 0 deletions go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module github.com/Checksum/gosh

require (
github.com/Checksum/notify v0.0.0-20190119234841-59aa2d88664f
github.com/PuerkitoBio/goquery v1.5.0
github.com/gorilla/handlers v1.4.0
github.com/pkg/profile v1.2.1
github.com/stretchr/testify v1.3.0
github.com/toqueteos/webbrowser v1.1.0
github.com/zenazn/goji v0.9.0
golang.org/x/sys v0.0.0-20190116161447-11f53e031339 // indirect
)
27 changes: 27 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
github.com/Checksum/notify v0.0.0-20190119234841-59aa2d88664f h1:H8FFAnzsmH2tQKoo637OS8J+MrrEvJvYvZ8Xqz0AZck=
github.com/Checksum/notify v0.0.0-20190119234841-59aa2d88664f/go.mod h1:ycq6epYppQust0ZVlBomA0ZVt7qOJtCOKXJ9CFaLu2o=
github.com/PuerkitoBio/goquery v1.5.0 h1:uGvmFXOA73IKluu/F84Xd1tt/z07GYm8X49XKHP7EJk=
github.com/PuerkitoBio/goquery v1.5.0/go.mod h1:qD2PgZ9lccMbQlc7eEOjaeRlFQON7xY8kdmcsrnKqMg=
github.com/andybalholm/cascadia v1.0.0 h1:hOCXnnZ5A+3eVDX8pvgl4kofXv2ELss0bKcqRySc45o=
github.com/andybalholm/cascadia v1.0.0/go.mod h1:GsXiBklL0woXo1j/WYWtSYYC4ouU9PqHO0sqidkEA4Y=
github.com/davecgh/go-spew v1.1.0 h1:ZDRjVQ15GmhC3fiQ8ni8+OwkZQO4DARzQgrnXU1Liz8=
github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/gorilla/handlers v1.4.0 h1:XulKRWSQK5uChr4pEgSE4Tc/OcmnU9GJuSwdog/tZsA=
github.com/gorilla/handlers v1.4.0/go.mod h1:Qkdc/uu4tH4g6mTK6auzZ766c4CA0Ng8+o/OAirnOIQ=
github.com/pkg/profile v1.2.1 h1:F++O52m40owAmADcojzM+9gyjmMOY/T4oYJkgFDH8RE=
github.com/pkg/profile v1.2.1/go.mod h1:hJw3o1OdXxsrSjjVksARp5W95eeEaEfptyVZyv6JUPA=
github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM=
github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4=
github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME=
github.com/stretchr/testify v1.3.0 h1:TivCn/peBQ7UY8ooIcPgZFpTNSz0Q2U6UrFlUfqbe0Q=
github.com/stretchr/testify v1.3.0/go.mod h1:M5WIy9Dh21IEIfnGCwXGc5bZfKNJtfHm1UVUgZn+9EI=
github.com/toqueteos/webbrowser v1.1.0 h1:Prj1okiysRgHPoe3B1bOIVxcv+UuSt525BDQmR5W0x0=
github.com/toqueteos/webbrowser v1.1.0/go.mod h1:Hqqqmzj8AHn+VlZyVjaRWY20i25hoOZGAABCcg2el4A=
github.com/zenazn/goji v0.9.0 h1:RSQQAbXGArQ0dIDEq+PI6WqN6if+5KHu6x2Cx/GXLTQ=
github.com/zenazn/goji v0.9.0/go.mod h1:7S9M489iMyHBNxwZnk9/EHS098H4/F6TATF2mIxtB1Q=
golang.org/x/net v0.0.0-20180218175443-cbe0f9307d01/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a h1:gOpx8G595UYyvj8UK4+OFyY4rx037g3fmfhe5SasG3U=
golang.org/x/net v0.0.0-20181114220301-adae6a3d119a/go.mod h1:mL1N/T3taQHkDXs73rZJwtUhF3w3ftmwwsq0BUmARs4=
golang.org/x/sys v0.0.0-20180926160741-c2ed4eda69e7/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
golang.org/x/sys v0.0.0-20190116161447-11f53e031339 h1:g/Jesu8+QLnA0CPzF3E1pURg0Byr7i6jLoX5sqjcAh0=
golang.org/x/sys v0.0.0-20190116161447-11f53e031339/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY=
2 changes: 1 addition & 1 deletion handlers/filewatcher.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"strings"

"github.com/Zillode/notify"
"github.com/Checksum/notify"
)

// FileWatcher recursively watches the served directory for changes
Expand Down
11 changes: 5 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,10 @@ import (
"os"

"github.com/Checksum/gosh/handlers"
"github.com/toqueteos/webbrowser"

"github.com/Zillode/notify"
"github.com/Checksum/notify"
gorilla "github.com/gorilla/handlers"
"github.com/pkg/profile"
"github.com/toqueteos/webbrowser"
"github.com/zenazn/goji/web/middleware"
)

Expand All @@ -22,9 +21,9 @@ func main() {
flag.StringVar(&port, "port", "8000", "The port to bind to")
flag.StringVar(&dir, "dir", ".", "The directory to serve")
flag.BoolVar(&noCache, "no-cache", true, "Disable HTTP caching")
flag.BoolVar(&watch, "watch", false, "Reload browser on file change")
flag.BoolVar(&openBrowser, "open", true, "Open a browser to serve the page")
flag.BoolVar(&spa, "spa", true, "Serve a single page application. All unmatched routes are forwarded to index.html")
flag.BoolVar(&watch, "watch", true, "Reload browser on file change")
flag.BoolVar(&openBrowser, "open", false, "Open a browser to serve the page")
flag.BoolVar(&spa, "spa", false, "Serve a single page application. All unmatched routes are forwarded to index.html")
flag.StringVar(&ext, "ext", "js,css,html", "Comma separated file extensions to watch for change")
flag.BoolVar(&cpuprofile, "cpuprofile", false, "Record profile for debugging")
flag.Parse()
Expand Down

0 comments on commit 14b90b3

Please sign in to comment.