Skip to content

version — Show Build Version

version prints the build version of go-testgen.

Syntax

go-testgen version [flags]

Example

go-testgen version

Output:

go-testgen v0.1.3

Flags

Flag Default Description
-s, --simple false Print only the version string (script-friendly).

Simple Output

go-testgen version --simple
# or
go-testgen version -s

Output:

v0.1.3

Use -s in scripts or CI pipelines where only the version string is needed.