Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create alias types for Id #17

Merged
merged 1 commit into from
Dec 17, 2015
Merged

Create alias types for Id #17

merged 1 commit into from
Dec 17, 2015

Conversation

janisz
Copy link
Contributor

@janisz janisz commented Dec 16, 2015

Currently our code is Stringly Typed. I added ID alias type for strings.

return string(id)
}

func (id Id) String() string {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

moving it closer to the type definition (just below it) would make it nicer to read. ❤️

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@dankraw
Copy link
Contributor

dankraw commented Dec 16, 2015

great!
👍

@janisz janisz force-pushed the destringify branch 5 times, most recently from 56ae493 to 9d5dc54 Compare December 17, 2015 09:45
Use apps.Id insted of string
Use tasks.Id instead of string
Move apps.Id to tasks.AppId
Add docs
janisz added a commit that referenced this pull request Dec 17, 2015
@janisz janisz merged commit 032eedd into master Dec 17, 2015
@janisz janisz deleted the destringify branch December 17, 2015 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants