Skip to content

Commit

Permalink
Go 1.17, Upgrade deps, Listen on tcp (for ipv6 support)
Browse files Browse the repository at this point in the history
  • Loading branch information
Vilsol committed Oct 15, 2021
1 parent c7d0191 commit dc07dde
Show file tree
Hide file tree
Showing 7 changed files with 522 additions and 20 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand All @@ -47,7 +47,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.17

- name: Checkout repository
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.15
go-version: 1.17

- name: Check out code into the Go module directory
uses: actions/checkout@v2
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Usage:
yeet [command]
Available Commands:
completion generate the autocompletion script for the specified shell
help Help about any command
serve Run the webserver
Expand All @@ -18,7 +19,7 @@ Flags:
--expiry-interval duration Interval between cache GC's (default 10m0s)
--expiry-time duration Lifetime of a cache entry (default 1h0m0s)
-h, --help help for yeet
--host string Hostname to bind the webserver (default "0.0.0.0")
--host string Hostname to bind the webserver
--index-file string The directory default index file (default "index.html")
--log string The log level to output (default "info")
--paths strings Paths to serve on the webserver (default [./www])
Expand Down
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ func init() {
rootCmd.PersistentFlags().String("log", "info", "The log level to output")
rootCmd.PersistentFlags().Bool("colors", false, "Force output with colors")

rootCmd.PersistentFlags().String("host", "0.0.0.0", "Hostname to bind the webserver")
rootCmd.PersistentFlags().String("host", "", "Hostname to bind the webserver")
rootCmd.PersistentFlags().Int("port", 8080, "Port to run the webserver on")

rootCmd.PersistentFlags().StringSlice("paths", []string{"./www"}, "Paths to serve on the webserver")
Expand Down
36 changes: 28 additions & 8 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,14 +1,34 @@
module github.com/Vilsol/yeet

go 1.15
go 1.17

require (
github.com/cornelk/hashmap v1.0.1
github.com/fsnotify/fsnotify v1.4.7
github.com/pkg/errors v0.8.1
github.com/sirupsen/logrus v1.7.0
github.com/spf13/cobra v1.1.1
github.com/spf13/viper v1.7.1
github.com/valyala/fasthttp v1.16.0
google.golang.org/genproto v0.0.0-20191108220845-16a3f7862a1a
github.com/fsnotify/fsnotify v1.5.1
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.8.1
github.com/spf13/cobra v1.2.1
github.com/spf13/viper v1.9.0
github.com/valyala/fasthttp v1.31.0
)

require (
github.com/andybalholm/brotli v1.0.2 // indirect
github.com/dchest/siphash v1.1.0 // indirect
github.com/hashicorp/hcl v1.0.0 // indirect
github.com/inconshreveable/mousetrap v1.0.0 // indirect
github.com/klauspost/compress v1.13.4 // indirect
github.com/magiconair/properties v1.8.5 // indirect
github.com/mitchellh/mapstructure v1.4.2 // indirect
github.com/pelletier/go-toml v1.9.4 // indirect
github.com/spf13/afero v1.6.0 // indirect
github.com/spf13/cast v1.4.1 // indirect
github.com/spf13/jwalterweatherman v1.1.0 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/subosito/gotenv v1.2.0 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
golang.org/x/sys v0.0.0-20210823070655-63515b42dcdf // indirect
golang.org/x/text v0.3.6 // indirect
gopkg.in/ini.v1 v1.63.2 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
)
Loading

0 comments on commit dc07dde

Please sign in to comment.