qrgo

package
v0.0.0-...-46b08fa Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrEncodingFailed = errors.New("couldn't encode provided content")

ErrEncodingFailed is returned if the query couldn't be successfully encoded

View Source
var ErrMissingParam = errors.New("no content provided for encoding")

ErrMissingParam is returned if path param evaluation results empty

Functions

func FixRequestPath

func FixRequestPath(path string) string

FixRequestPath rectifies issues caused by https://github.com/zeit/now/issues/3086

func QRServer

func QRServer(w http.ResponseWriter, r *http.Request)

QRServer is the main http handler

Types

type Result

type Result struct {
	QRCode string
}

Result represents the object evaluated in the html template

Jump to

Keyboard shortcuts

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