diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..afc569c --- /dev/null +++ b/.gitignore @@ -0,0 +1,34 @@ +# ---> Vim +# Swap +[._]*.s[a-v][a-z] +!*.svg # comment out if you don't need vector files +[._]*.sw[a-p] +[._]s[a-rt-v][a-z] +[._]ss[a-gi-z] +[._]sw[a-p] + +# Session +Session.vim +Sessionx.vim + +# Temporary +.netrwhist +*~ +# Auto-generated tag files +tags +# Persistent undo +[._]*.un~ + +backup +*.exe +*.dll +*.world +coverage +coverage/* +.venv +*.gz +public +*.idx +*.sqlite3 +jankifier +*.log diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..eb0d984 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +build: + go build . + +test: + go test MY/webapp/tests -c + ./tests.test + +test_only: + go test . -c -o + ./tests.test -test.run TestSomePage + +docs: + pkgsite --open + +coverage: + go build -cover -o webapp + mkdir -p .coverage + echo "GOCOVERDIR=.coverage ./webapp" + +cover_report: + go tool covdata textfmt -i=.coverage -o coverage.txt + go tool cover -func=coverage.txt + go tool cover -html=coverage.txt -o coverage.html + open coverage.html diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..b225ec3 --- /dev/null +++ b/go.mod @@ -0,0 +1,3 @@ +module lcthw.dev/go/jankifier + +go 1.25.3 diff --git a/main.go b/main.go new file mode 100644 index 0000000..0ede052 --- /dev/null +++ b/main.go @@ -0,0 +1,10 @@ +package main + +import ( + "fmt" +) + + +func main() { + fmt.Println("hello") +}