Files
Gumble-Backend/scripts
Zane Walker 7e940c83a7
Some checks failed
Build & Test / build-test (push) Has been cancelled
Build & Test / swagger-codegen-cli (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
(Feat): Initial Commit
2026-07-03 19:41:31 +05:30
..
2026-07-03 19:41:31 +05:30
2026-07-03 19:41:31 +05:30
2026-07-03 19:41:31 +05:30
2026-07-03 19:41:31 +05:30
2026-07-03 19:41:31 +05:30

/scripts

Scripts to perform various build, install, analysis, etc operations.

These scripts keep the root level Makefile small and simple.

https://github.com/golang-standards/project-layout/tree/master/scripts

Examples:

Please note that this scripts are not available in a final product. Head to ../cmd if you need to execute your script in live environments.

The gsdev cli util executes this scripts/main.go file here and also describes all available commands available while developing a project locally. gsdev is made available during the Dockerfile's development stage.

/scripts/cmd/*.go

funcs may define shared logic used in /scripts/internal/**/*.go, the actual usable commands are defined within /scripts/internal.

//go:build scripts

Any *.go file in all subdirectories of /scripts/** should specify //go:build scripts to signal that those files are not part of of our final product. To execute any script that has this build tag, you need to specify -tags scripts, otherwise you will run into an error like the following (also see our Makefile for a reference):

# Works
go run -tags scripts scripts/main.go
# go-starter development scripts
# Utility commands while developing go-starter based projects.

# Works (same as above)
gsdev
# go-starter development scripts
# Utility commands while developing go-starter based projects.

# Misses build tag "scripts"
go run scripts/main.go
# package command-line-arguments
# 	imports allaboutapps.dev/aw/go-starter/scripts/cmd: build constraints exclude all Go files in /app/scripts/cmd