We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Would s/o please explain to me why Amount is a struct and not just a type alias which I expected to be more simple and sufficient?
Amount
// Amount is a datastructure that stores the amount being used for calculations. type Amount struct { val int64 }
It seems more odd when I saw when the Amount is fetched we are getting the value.
func (m *Money) Amount() int64 { return m.amount.val }
The text was updated successfully, but these errors were encountered:
good point, you're right it would be more sufficient to use type alias instead
Sorry, something went wrong.
No branches or pull requests
Would s/o please explain to me why
Amount
is a struct and not just a type alias which I expected to be more simple and sufficient?It seems more odd when I saw when the Amount is fetched we are getting the value.
The text was updated successfully, but these errors were encountered: