aboutsummaryrefslogtreecommitdiff
path: root/internal/rtree/init.go
diff options
context:
space:
mode:
authorSandro Jäckel <sandro.jaeckel@sap.com>2023-04-17 13:28:47 +0200
committerSandro Jäckel <sandro.jaeckel@sap.com>2023-04-17 14:54:52 +0200
commit72c757b7a44dc5d19d821f7c2fa36bb082e4f2e3 (patch)
treeaa14acc93110f363b54eaa0218b9c0e25ee545dc /internal/rtree/init.go
parentbe0e424eecec3fec19ba3518f8fd1bb07b6908dc (diff)
downloadgofu-72c757b7a44dc5d19d821f7c2fa36bb082e4f2e3.tar.gz
Save rtree with go 1.20
Diffstat (limited to 'internal/rtree/init.go')
-rw-r--r--internal/rtree/init.go22
1 files changed, 11 insertions, 11 deletions
diff --git a/internal/rtree/init.go b/internal/rtree/init.go
index 569f042..7121af9 100644
--- a/internal/rtree/init.go
+++ b/internal/rtree/init.go
@@ -27,29 +27,29 @@ import (
"github.com/majewsky/gofu/internal/cli"
)
-//RemoteAlias describes an alias that can be used in a Git remote URL (as
-//defined by the "url.<base>.insteadOf" directive in man:git-config(1)).
+// RemoteAlias describes an alias that can be used in a Git remote URL (as
+// defined by the "url.<base>.insteadOf" directive in man:git-config(1)).
type RemoteAlias struct {
Alias string
Replacement string
}
-//IndexPath is where the index file is stored.
+// IndexPath is where the index file is stored.
var IndexPath string
-//RootPath is the directory below which all repositories are located. Its value
-//is $GOPATH/src to match the repository layout created by `go get`.
+// RootPath is the directory below which all repositories are located. Its value
+// is $GOPATH/src to match the repository layout created by `go get`.
var RootPath string
-//RemoteAliases is the list of remote aliases that is used by ExpandRemoteURL().
+// RemoteAliases is the list of remote aliases that is used by ExpandRemoteURL().
var RemoteAliases []*RemoteAlias
-//Init initializes the global variables of this package to their standard
-//values, unless they are already populated. Unit tests shall set IndexPath,
-//RootPath etc. before calling Exec(), such that this function becomes a no-op
-//when called by Exec().
+// Init initializes the global variables of this package to their standard
+// values, unless they are already populated. Unit tests shall set IndexPath,
+// RootPath etc. before calling Exec(), such that this function becomes a no-op
+// when called by Exec().
//
-//Returns false if initialization failed.
+// Returns false if initialization failed.
func Init() bool {
ok := true //until shown otherwise