goStackQuery

package module
v0.0.0-...-fecf428 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 1, 2021 License: MIT Imports: 4 Imported by: 0

README

Go Report Card GORef License

IMAGE

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
IMAGE
1 - Query ERROR on web browser and automate open link
IMAGE

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.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Query

func Query(err error, switcher int)

Query - function that either outputs a link to the search using switch 0, or opens a link via switch 1.

Types

This section is empty.

Directories

Path Synopsis
_examples

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL