device example

This commit is contained in:
Tim Möhlmann 2023-02-28 17:24:23 +02:00
parent 08fab97786
commit b5d2050c2a
13 changed files with 505 additions and 54 deletions

View file

@ -0,0 +1,26 @@
package exampleop
import (
"embed"
"html/template"
"github.com/sirupsen/logrus"
)
var (
//go:embed templates
templateFS embed.FS
templates = template.Must(template.ParseFS(templateFS, "templates/*.html"))
)
const (
queryAuthRequestID = "authRequestID"
)
func errMsg(err error) string {
if err == nil {
return ""
}
logrus.Error(err)
return err.Error()
}