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

go.mod — first lines
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 => ./tools

File details

Size
266 B (266 bytes)
MIME type
text/plain
SHA-256
6afc3907546e1153855fbbf81b03bff5981dd52afaaf2fe2bbb6162975b3f21c
MD5
35ecd61c84703421a931b89cec5aead2

Download from the command line

curl -L -o go.mod https://files.samplefiles.com/config/go-mod/go.mod

Or check the download in your browser with the checksum calculator.