- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for isGoModRoot (0.15 sec)
-
cmd/import-boss/main.go
return nil, fmt.Errorf("couldn't unmarshal %v: %w", path, err) } current.path = path return ¤t, nil } // isGoModRoot checks if a directory is the root directory for a package // by checking for the existence of a 'go.mod' file in that directory. func isGoModRoot(path string) bool { _, err := os.Stat(filepath.Join(filepath.Dir(path), goModFile)) return err == nil }
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Thu May 16 12:36:49 UTC 2024 - 14.7K bytes - Viewed (0)