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
| go mod init mollydb | |
| go mod tidy |
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
| module mollydb | |
| require ( | |
| github.com/boltdb/bolt v0.0.0–20180302180052-fd01fc79c553 | |
| github.com/fsnotify/fsnotify v1.4.7 | |
| github.com/go-yaml/yaml v0.0.0–20140922213225-bec87e4332ae | |
| github.com/graphql-go/graphql v0.0.0–20180324214652–8ab5400ff77c | |
| github.com/graphql-go/handler v0.0.0–20180312211735-df717460db9a | |
| github.com/graphql-go/relay v0.0.0–20171208134043–54350098cfe5 | |
| golang.org/x/net v0.0.0–20180320002117–6078986fec03 | |
| golang.org/x/sys v0.0.0–20180318190847–01acb38716e0 |
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
| go mod init mollydb |
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
| rm -rf src/mollydb/vendor | |
| mv src/mollydb/* . |
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
| git clone https://github.com/wesovilabs/mollydb.git | |
| cd mollydb; | |
| git checkout -b feature/using-go-mods |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/wesovilabs/koazee" | |
| "strings" | |
| ) | |
| type Person struct { | |
| Name string |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/wesovilabs/koazee" | |
| ) | |
| var numbers = []int{1, 5, 4, 3, 2, 7, 1, 8, 2, 3} | |
| func main() { |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/wesovilabs/koazee" | |
| ) | |
| var numbers = []int{1, 5, 4, 3, 2, 7, 1, 8, 2, 3} | |
| func main() { |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/wesovilabs/koazee" | |
| "strings" | |
| ) | |
| var animals = []string{"lynx", "dog", "cat", "monkey", "dog", "fox", "tiger", "lion"} |
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 main | |
| import ( | |
| "fmt" | |
| "github.com/wesovilabs/koazee" | |
| ) | |
| type message struct { | |
| user string | |
| message string |