- Build:
make buildorgo build -o tlsctl . - Test all:
make testorgo test ./... - Test single:
go test -run TestName ./path/to/pkg - Clean:
make clean - Format:
gofmt -w . - Always run
makeafter code changes and ensure there are no errors.
cmd/- Cobra CLI commands (root, client, pem)internal/tlsquery/- Core TLS query and PEM parsing logic- Dependencies: spf13/cobra (CLI), gopkg.in/yaml.v3 (output)
- Update
README.mdwhen there are user-facing behaviour changes (new flags, commands, output changes, etc.).
- Use standard Go formatting (
gofmt) and idiomatic Go patterns - Prefer stdlib over external dependencies
- Use table-driven tests; keep functions small and focused
- Error handling: return errors, don't panic; wrap with context