mirror of
https://github.com/chai2010/advanced-go-programming-book.git
synced 2025-05-24 12:32:21 +00:00
fix typo
This commit is contained in:
parent
a77de3ad07
commit
1ad9ab9d99
@ -207,8 +207,9 @@ func checkMachineID(machineID uint16) bool {
|
|||||||
func main() {
|
func main() {
|
||||||
t, _ := time.Parse("2006-01-02", "2018-01-01")
|
t, _ := time.Parse("2006-01-02", "2018-01-01")
|
||||||
settings := sonyflake.Settings{
|
settings := sonyflake.Settings{
|
||||||
StartTime: t,
|
StartTime: t,
|
||||||
MachineID: getMachineID,
|
MachineID: getMachineID,
|
||||||
|
CheckMachineID: checkMachineID,
|
||||||
}
|
}
|
||||||
|
|
||||||
sf := sonyflake.NewSonyflake(settings)
|
sf := sonyflake.NewSonyflake(settings)
|
||||||
@ -220,4 +221,5 @@ func main() {
|
|||||||
|
|
||||||
fmt.Println(id)
|
fmt.Println(id)
|
||||||
}
|
}
|
||||||
```
|
|
||||||
|
```
|
Loading…
x
Reference in New Issue
Block a user