Initial commit

This commit is contained in:
Ian Gulliver
2023-06-11 09:51:30 -07:00
parent 3a2f3e7858
commit 4b6bfe73cd
5 changed files with 37 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
cover.*

5
go.mod Normal file
View File

@@ -0,0 +1,5 @@
module github.com/gopatchy/rand
go 1.20
require github.com/dchest/uniuri v1.2.0

2
go.sum Normal file
View File

@@ -0,0 +1,2 @@
github.com/dchest/uniuri v1.2.0 h1:koIcOUdrTIivZgSLhHQvKgqdWZq5d7KdMEWF1Ud6+5g=
github.com/dchest/uniuri v1.2.0/go.mod h1:fSzm4SLHzNZvWLvWJew423PhAzkpNQYq+uNLq4kxhkY=

18
justfile Normal file
View File

@@ -0,0 +1,18 @@
go := env_var_or_default('GOCMD', 'go')
default: tidy test
tidy:
{{go}} mod tidy
goimports -l -w .
gofumpt -l -w .
{{go}} fmt ./...
test:
{{go}} vet ./...
golangci-lint run ./...
{{go}} test -race -coverprofile=cover.out -timeout=60s ./...
{{go}} tool cover -html=cover.out -o=cover.html
todo:
-git grep -e TODO --and --not -e ignoretodo

11
main.go Normal file
View File

@@ -0,0 +1,11 @@
package main
import (
"fmt"
"github.com/dchest/uniuri"
)
func main() {
fmt.Printf("%s\n", uniuri.New())
}