go-ask-stackoverflow is a simple terminal appilcation which quickly responds to your question with the accepted answer from StackOverflow. As we programmers tend to love StackOverflow for inspiration or just quick & dirty answers, go-ask-stackoverflow intent is to speed this up and be easily extendable.
$ git clone github.com/xtrcode/go-ask-stackoverflow
$ cd go-ask-stackoverflow/
$ go build -o ask main.goNow you can move the executable to your preferred location (e.g. /usr/bin) and just
& ask whatever you want
type Engine interface {
Request(str string) error
Get() (string, error)
}type Website interface {
Get(url string) error
Parse() (string, error)
}type Cache interface {
Init() error
Open() error
Close() error
Get(key string) (string, error)
Set(key, value string) error
}go-ask-stackoverflow is inspired by https://github.com/juliusmh/ask
MIT