Open jan-zabloudil opened 4 months ago
Suggested by @bolshakoff. For additional context see:
Current state
GenerateGitTagURL(ownerSlug, repoSlug, tagName string) (url.URL, error)
Desired state
type githubURL url.URL GenerateGitTagURL(ownerSlug, repoSlug, tagName string) (githubURL, error)
Valid()
Yes. And apart of security, it's also about readability when you have a return parameter of type url.URL vs. githubURL.
url.URL
githubURL
Plus it allows to add methods like Valid() etc.
Suggested by @bolshakoff. For additional context see:
Current state
Desired state
Benefits of the feature
Valid()