Open jan-zabloudil opened 6 months ago
Suggested by @bolshakoff. For additional context see:
Current state
ReadRelease(ctx context.Context, releaseID uuid.UUID) (model.Release, error)
Desired state
ReadRelease(ctx context.Context, releaseID id.Release) (model.Release, 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()