Go (golang) package for search error on Stackoverflow
Install
go get -v github.com/dreddsa5dies/goStackQuery
Package used
go get -v -u github.com/toqueteos/webbrowser
Example
Examples of use, see examples
package main
import (
"os"
goStackQuery "github.com/dreddsa5dies/goStackQuery"
)
func main() {
file, err := os.Open("file")
if err != nil {
goStackQuery.Query(err, 1)
}
defer file.Close()
file.WriteString("Aloha")
}
Switchers:
0 - Query ERROR and paste link on STDERR
1 - Query ERROR on web browser and automate open link
License
This project is licensed under MIT license. Please read the LICENSE file.
Contribute
Welcomes any kind of contribution. Please read the CONTRIBUTING and CODE_OF_CONDUCT file.