Skip to content

Commit

Permalink
refactor: remove gzip
Browse files Browse the repository at this point in the history
  • Loading branch information
tsukinoko-kun committed Nov 9, 2024
1 parent c07786b commit 5014461
Show file tree
Hide file tree
Showing 5 changed files with 215 additions and 535 deletions.
20 changes: 20 additions & 0 deletions internal/config/config.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
package config

import (
"flag"
"fmt"
)

var (
Addr string
Path string
)

func init() {
port := flag.Int("port", 0, "port to listen on")
flag.StringVar(&Path, "path", ".", "path to serve")

flag.Parse()

Addr = fmt.Sprintf(":%d", *port)
}
Loading

0 comments on commit 5014461

Please sign in to comment.