diff options
| author | adnano <[email protected]> | 2020-09-28 19:54:08 -0400 |
|---|---|---|
| committer | adnano <[email protected]> | 2020-09-28 19:54:08 -0400 |
| commit | b557ab379b5e30076f38b6aa1a8eecda199e3db6 (patch) | |
| tree | f67fedc60ae413b3a95b26867150b922517e9053 | |
| parent | Update README.md (diff) | |
| download | go-gemini-b557ab379b5e30076f38b6aa1a8eecda199e3db6.tar.xz go-gemini-b557ab379b5e30076f38b6aa1a8eecda199e3db6.zip | |
Use path instead of filepath
| -rw-r--r-- | server.go | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -11,7 +11,6 @@ import ( "net/url" "os" "path" - "path/filepath" "sort" "strconv" "strings" @@ -385,7 +384,7 @@ type File interface { type Dir string func (d Dir) Open(name string) (File, error) { - path := filepath.Join(string(d), name) + path := path.Join(string(d), name) f, err := os.OpenFile(path, os.O_RDONLY, 0644) if err != nil { return nil, err |