From c0a8852e4ec21f15c5a862201515518c3eee7734 Mon Sep 17 00:00:00 2001 From: Emile Date: Wed, 12 Feb 2025 21:24:31 +0100 Subject: template: a basic golang app template This template allows building golang apps as well as a corresponding docker container from the built package --- nix/templates/goapp/README.md | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 nix/templates/goapp/README.md (limited to 'nix/templates/goapp/README.md') diff --git a/nix/templates/goapp/README.md b/nix/templates/goapp/README.md new file mode 100644 index 0000000..e819496 --- /dev/null +++ b/nix/templates/goapp/README.md @@ -0,0 +1,39 @@ +# goapp + +A template for a go app. + +```bash +; nix flake show +warning: Git tree '/Users/emile/hefe' is dirty +git+file:///Users/emile/hefe?dir=nix/templates/goapp +├───devShells +│ ├───aarch64-darwin +│ │ └───default: development environment 'nix-shell' +│ ├───aarch64-linux +│ │ └───default omitted (use '--all-systems' to show) +│ ├───x86_64-darwin +│ │ └───default omitted (use '--all-systems' to show) +│ └───x86_64-linux +│ └───default omitted (use '--all-systems' to show) +└───packages + ├───aarch64-darwin + │ ├───backend: package 'backend-0.0.1' + │ ├───backend-docker: package 'docker-image-backend.tar.gz' + │ ├───frontend: package 'frontend-0.0.1' + │ └───frontend-docker: package 'docker-image-frontend.tar.gz' + ├───aarch64-linux + │ ├───backend omitted (use '--all-systems' to show) + │ ├───backend-docker omitted (use '--all-systems' to show) + │ ├───frontend omitted (use '--all-systems' to show) + │ └───frontend-docker omitted (use '--all-systems' to show) + ├───x86_64-darwin + │ ├───backend omitted (use '--all-systems' to show) + │ ├───backend-docker omitted (use '--all-systems' to show) + │ ├───frontend omitted (use '--all-systems' to show) + │ └───frontend-docker omitted (use '--all-systems' to show) + └───x86_64-linux + ├───backend omitted (use '--all-systems' to show) + ├───backend-docker omitted (use '--all-systems' to show) + ├───frontend omitted (use '--all-systems' to show) + └───frontend-docker omitted (use '--all-systems' to show) +``` -- cgit 1.4.1