Config Files · 1 file
Sample go.mod File
go.mod defines a Go module and its dependencies. Our sample is realistic and valid for its tool, with fake hosts and secrets.
go.mod · 266 B
go.mod
A Go module file with the module path, Go version, direct and indirect requirements and a replace directive. All hosts, keys and secrets are fake.
CC0 · free for any use · Verified by an independent tool · Report a problem
module example.com/sample-app
go 1.23
require (
github.com/go-chi/chi/v5 v5.1.0
github.com/jackc/pgx/v5 v5.6.0
)
require (
github.com/jackc/pgpassfile v1.0.0 // indirect
golang.org/x/crypto v0.26.0 // indirect
)
replace example.com/internal/tools => ./toolsFile details
Download from the command line
curl -L -o go.mod https://files.samplefiles.com/config/go-mod/go.modwget https://files.samplefiles.com/config/go-mod/go.modhttps://files.samplefiles.com/config/go-mod/go.modprintf '%s %s\n' 6afc3907546e1153855fbbf81b03bff5981dd52afaaf2fe2bbb6162975b3f21c go.mod | shasum -a 256 -cOr check the download in your browser with the checksum calculator.