maint: makefile
This commit is contained in:
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
|||||||
|
lash
|
||||||
12
Makefile
Normal file
12
Makefile
Normal file
@@ -0,0 +1,12 @@
|
|||||||
|
GO?= go
|
||||||
|
|
||||||
|
.PHONY: build lint
|
||||||
|
|
||||||
|
all: build
|
||||||
|
|
||||||
|
build:
|
||||||
|
$(GO) build -o lash ./cmd/lash/
|
||||||
|
|
||||||
|
lint:
|
||||||
|
$(GO) fmt ./...
|
||||||
|
$(GO) vet ./...
|
||||||
8
lash.go
8
lash.go
@@ -1,6 +1,10 @@
|
|||||||
package lash
|
package lash
|
||||||
|
|
||||||
import "embed"
|
import (
|
||||||
|
"embed"
|
||||||
|
|
||||||
|
"github.com/google/uuid"
|
||||||
|
)
|
||||||
|
|
||||||
//go:embed templates/*
|
//go:embed templates/*
|
||||||
var Templates embed.FS
|
var Templates embed.FS
|
||||||
@@ -8,4 +12,4 @@ var Templates embed.FS
|
|||||||
//go:embed version
|
//go:embed version
|
||||||
var Version string
|
var Version string
|
||||||
|
|
||||||
var Token string = "SICK-COOL-TOKEN"
|
var Token string = uuid.New().String()
|
||||||
|
|||||||
Reference in New Issue
Block a user