diff options
| -rw-r--r-- | pkg/types/index.go (renamed from pkg/types/types.go) | 24 | ||||
| -rw-r--r-- | pkg/types/module.go | 25 |
2 files changed, 25 insertions, 24 deletions
diff --git a/pkg/types/types.go b/pkg/types/index.go index 4610ad4..f58d5f2 100644 --- a/pkg/types/types.go +++ b/pkg/types/index.go @@ -2,30 +2,6 @@ package types import "sync" -// Vcs is an enum for version control systems supported by the standard Go -// toolchain. -// -// See https://pkg.go.dev/cmd/go#hdr-Module_configuration_for_non_public_modules -type Vcs string - -// Vcs enum. -const ( - VcsBazaar Vcs = "bzr" - VcsFossil Vcs = "fossil" - VcsGit Vcs = "git" - VcsMercurial Vcs = "hg" - VcsSubversion Vcs = "svn" -) - -// Module represents a Go module to index. -type Module struct { - Path string // module path (without domain) - Vcs Vcs // vcs system - Repo string // repository's home - Dir string // url template - File string // url template -} - // Index is the global object representing the Starlark configuration. type Index struct { Domain string diff --git a/pkg/types/module.go b/pkg/types/module.go new file mode 100644 index 0000000..0c4e8af --- /dev/null +++ b/pkg/types/module.go @@ -0,0 +1,25 @@ +package types + +// Vcs is an enum for version control systems supported by the standard Go +// toolchain. +// +// See https://pkg.go.dev/cmd/go#hdr-Module_configuration_for_non_public_modules +type Vcs string + +// Vcs enum. +const ( + VcsBazaar Vcs = "bzr" + VcsFossil Vcs = "fossil" + VcsGit Vcs = "git" + VcsMercurial Vcs = "hg" + VcsSubversion Vcs = "svn" +) + +// Module represents a Go module to index. +type Module struct { + Path string // module path (without domain) + Vcs Vcs // vcs system + Repo string // repository's home + Dir string // url template + File string // url template +} |
