Documentation ¶
Index ¶
- func AddPath(repoVer string, path string) string
- func GetApiURL(resource string) string
- func LoadVersion(retriever gop.Retriever, cacher gop.Cacher, resolver Resolver, ...) (string, error)
- func ReplaceImports(modFile []byte, sourceFile []byte) ([]byte, error)
- func ReplaceSpecificImport(content string, oldrepo, oldver, newrepo, newver string) string
- type Loader
- type Modules
- type Resolver
- type Retriever
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadVersion ¶
func LoadVersion(retriever gop.Retriever, cacher gop.Cacher, resolver Resolver, cacheFile, resource string) (string, error)
LoadVersion returns the version from a version
func ReplaceImports ¶
ReplaceImports replaces the contents of sourcefile with the imports in modfile
func ReplaceSpecificImport ¶
ReplaceSpecificImport replaces a specific import in content
Types ¶
type Loader ¶
type Loader struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.