diff --git a/.gitignore b/.gitignore index 0a3e6d5..a31542a 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,10 @@ -# Created by https://www.toptal.com/developers/gitignore/api/database -# Edit at https://www.toptal.com/developers/gitignore?templates=database +# Ignore files without extension (mainly binaries) +* +!/**/ +!*.* +!Makefile +# Created by https://www.toptal.com/developers/gitignore/api/database,go,visualstudiocode +# Edit at https://www.toptal.com/developers/gitignore?templates=database,go,visualstudiocode ### Database ### *.accdb @@ -11,4 +16,46 @@ *.db-shm *.db-wal -# End of https://www.toptal.com/developers/gitignore/api/database +### Go ### +# If you prefer the allow list template instead of the deny list, see community template: +# https://github.com/github/gitignore/blob/main/community/Golang/Go.AllowList.gitignore +# +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# Go workspace file +go.work + +### VisualStudioCode ### +.vscode/* +!.vscode/settings.json +!.vscode/tasks.json +!.vscode/launch.json +!.vscode/extensions.json +!.vscode/*.code-snippets + +# Local History for Visual Studio Code +.history/ + +# Built Visual Studio Code Extensions +*.vsix + +### VisualStudioCode Patch ### +# Ignore all local history of files +.history +.ionide + +# End of https://www.toptal.com/developers/gitignore/api/database,go,visualstudiocode diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..0b42c03 --- /dev/null +++ b/Makefile @@ -0,0 +1,12 @@ +CC=go build +NAME=whatsup-poll +default: build + +build: + $(CC) + +arm: + env GOOS=linux GOARCH=arm64 $(CC) -o $(NAME)-arm64 + +clean: + git clean -fX