Skip to content

Commit

Permalink
fix: rename const to not use package name
Browse files Browse the repository at this point in the history
  • Loading branch information
juev committed Dec 12, 2023
1 parent ad444c1 commit 9f16da7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions cmd/gobrew/main.go
Expand Up @@ -89,9 +89,9 @@ func main() {
config := gobrew.Config{
RootDir: rootDir,
RegistryPathUrl: registryPath,
GobrewDownloadUrl: gobrew.GoBrewDownloadUrl,
GobrewTags: gobrew.GoBrewTagsApi,
GobrewVersionsUrl: gobrew.GoBrewVersionsUrl,
GobrewDownloadUrl: gobrew.DownloadUrl,
GobrewTags: gobrew.TagsApi,
GobrewVersionsUrl: gobrew.VersionsUrl,
}

gb := gobrew.NewGoBrew(config)
Expand Down
8 changes: 4 additions & 4 deletions gobrew.go
Expand Up @@ -20,9 +20,9 @@ import (
const (
goBrewDir string = ".gobrew"
DefaultRegistryPath string = "https://go.dev/dl/"
GoBrewDownloadUrl string = "https://github.com/kevincobain2000/gobrew/releases/latest/download/"
GoBrewTagsApi = "https://raw.githubusercontent.com/kevincobain2000/gobrew/json/golang-tags.json"
GoBrewVersionsUrl string = "https://api.github.com/repos/kevincobain2000/gobrew/releases/latest"
DownloadUrl string = "https://github.com/kevincobain2000/gobrew/releases/latest/download/"
TagsApi = "https://raw.githubusercontent.com/kevincobain2000/gobrew/json/golang-tags.json"
VersionsUrl string = "https://api.github.com/repos/kevincobain2000/gobrew/releases/latest"
)

// check GoBrew implement is Command interface
Expand All @@ -38,7 +38,7 @@ type Command interface {
Use(version string)
Prune()
Version(currentVersion string)
Upgrade(string)
Upgrade(currentVersion string)
Interactive(ask bool)
}

Expand Down

0 comments on commit 9f16da7

Please sign in to comment.