Package deal! Implement a picker package to pick a word from a given word dictionary
- In the letsgo_labs directory, cd to packaging/picker
- Create a new module file using the following command:
shell go mod init github.com/YOUR_GIT_USER_HANDLE/picker
- The picker package loads words from the given assets directory and randonly pick a new word
- Write tests and completely document your package
- Ensure you have adequate coverage and you're not exposing too much!
- Publish and tag your new package
- Next implement a CLI to load words from your dictionary
- The CLI should take in 2 parameters:
- A directory where to load the dictionaries from
- The name of the dictionary to load
- Ensures it display a new random word on each runs!
- Congratulation!! You've just built a brand new go package!
- BONUS! Change your CLI to reference your classmate repo and run the CLI using their implementation
© 2018 Imhotep Software LLC. All materials licensed under Apache v2.0