#!/usr/bin/env just --justfile jfdir := replace(justfile_directory(), "\\", "/") dist := jfdir / "dist" goos := `go env GOOS` example_html := jfdir / "misc" / "index.html" example_html_dist_dir := dist / "wwwroot" example_html_dist := example_html_dist_dir / "index.html" executable_suffix := if goos == "windows" { ".exe" } else { "" } export GOOS := goos default: just --list tidy: go mod tidy -e build: go build -o {{dist / "SimpleHttpTestServerV2" + executable_suffix}} cp_html: -mkdir -p {{ example_html_dist_dir }} cp {{ example_html }} {{ example_html_dist }}