modulepackage
0.0.0-20210801150954-fecf42817c0b
Repository: https://github.com/dreddsa5dies/gostackquery.git
Documentation: pkg.go.dev
# README
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
The code contains comments in Russian
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.
# Functions
Query - function that either outputs a link to the search using switch 0, or opens a link via switch 1.