refactor: use regexp to get root path

This commit is contained in:
2023-03-11 12:26:02 +01:00
parent f50cf1a3ec
commit 51e57f8246
4 changed files with 56 additions and 9 deletions

8
go.mod
View File

@@ -1,3 +1,11 @@
module gitea.urkob.com/urko/go-root-dir
go 1.19
require github.com/stretchr/testify v1.8.2
require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
)