diff options
| author | Jeff Carr <[email protected]> | 2024-12-18 02:54:14 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-18 02:54:14 -0600 |
| commit | 6bb2b972b4dff09d55c77341ccc06afb30a5026f (patch) | |
| tree | 7e40e074a085651574ac4c1c517f570407cca9f2 /main.go | |
| parent | 84c25d74da64460dc9c92cc05f78d288d3f8f59f (diff) | |
fix path. add notes to help install protoc
Diffstat (limited to 'main.go')
| -rw-r--r-- | main.go | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -6,6 +6,7 @@ package main import ( "errors" "os" + "path/filepath" "strings" "github.com/alexflint/go-arg" @@ -51,8 +52,10 @@ func main() { os.Exit(-1) } + // todo, look for go.work files if argv.GoSrc == "" { - argv.GoSrc = "/home/jcarr/go/src" + homeDir, _ := os.UserHomeDir() + argv.GoSrc = filepath.Join(homeDir, "go/src") } if argv.GoPath == "" { |
