Created
June 4, 2019 02:15
-
-
Save eminetto/ccdd2d4dcdb647b3c84c437d7789c1c8 to your computer and use it in GitHub Desktop.
This file contains 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 ecommerce | |
type order struct { | |
pid int64 | |
cid int64 | |
} | |
func CreateOrder(pid int64, cid int64) order { | |
return order{ | |
pid: pid, cid: cid, | |
} | |
} | |
func (o order) Submit() (int64, error) { | |
// do some logic | |
return int64(3252345234), nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment