Something went wrong. Try again.
a printing press for printing new golang projects
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536[tools]go = "1.26.0"
[vars]version = "{{ exec(command='cat version.txt') }}"ldl_flags = "-X 'main.version={{ exec(command='cat version.txt') }}'"
[tasks.fmt-go]description = "Format the project"run = "go fmt"
[tasks.install]run = ["mise install"]
[tasks.fmt]depends = ["fmt-go"]
[tasks.dev]depends = ["install"]description = "Run the application"run = '''go run \ -ldflags="{{vars.ldl_flags}}" \ main.go'''
[tasks.build]depends = ["install"]description = "Build the application"run = '''go build \ -ldflags="{{vars.ldl_flags}}" \ -o blogservice \ main.go'''