Last active
September 4, 2021 18:51
-
-
Save percybolmer/d3812b65e7987a55dd6e40c3d7736d24 to your computer and use it in GitHub Desktop.
#ddd-tavern
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package valueobject | |
import ( | |
"time" | |
) | |
// Transaction is a payment between two parties | |
type Transaction struct { | |
// all values lowercase since they are immutable | |
amount int | |
from uuid.UUID | |
to uuid.UUID | |
createdAt time.Time | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment