yuvrajmodz/GoJokes ? reverse-engineered prompt
Reverse engineered prompt
Build me a small Go library and CLI that lets people get a random joke instantly.
I want it to be lightweight, with no external dependencies, and to work by loading joke categories from embedded JSON files so everything ships in one binary. The library should expose a simple way to get any random joke, get a joke from a specific category like programming, golang, linux, neutral, or dark, and list all available categories. The CLI should print a random joke by default, let me choose a category with a flag, and have a way to list all categories too.
Please keep it simple, fast, and easy to use from both code and the terminal. Use standard Go features only, and make sure it feels clean and polished. If you need to check current Go docs or best practices, feel free to look them up.
Are you gonna build this?
make sure you review the code using coderabbit