Contributing and reporting
go-dicom is open to contributions: bug reports, feature requests, fixes, tests and documentation are all welcome. This page says where each kind of report goes and how a change gets in.
Where to go
| You have | Where it goes |
|---|---|
| A bug | New issue → Bug Report |
| A feature request | New issue → Feature Request |
| A question, or a project built on go-dicom | Discussions |
| A security vulnerability | Private security advisory, never a public issue |
| Code or documentation | A pull request against develop (CONTRIBUTING.md) |
Caution
Never include real patient data in an issue, a discussion, a pull
request or a test file. DICOM files carry Protected Health Information.
Use synthetic or public test files, or de-identify first with
go-dicom anonymize.
Report a bug
Use the bug report template, and include:
- what you ran (the command, or the smallest Go program that shows it);
- what you expected and what happened, with the error text;
- the go-dicom version (
go-dicom version, or the version in yourgo.mod), your Go version and OS; - a file that shows it, if you can share one: synthetic or de-identified.
go-dicom show --json file.dcm and the -events log of a network command
are often the quickest way to show what go-dicom saw.
Ask for a feature
Use the feature request template. Say what you are trying to do and why, not only the API you have in mind: the use case decides the design. If a standard defines the behavior, name the part and section (PS3.x).
Report a security vulnerability
Report it privately through a GitHub security advisory. The form is visible only to you and the maintainers. Include what an attacker gains, what access they need, and how to reproduce it.
Do not open a public issue for a vulnerability. go-dicom parses files from untrusted sources and listens on network ports, often inside clinical networks where upgrades are slow; a public report is an exploit recipe before anyone has patched. The full policy, with the supported versions and response times, is in SECURITY.md.
Contribute code or documentation
- Fork the repository and branch from
develop. - Make the change with tests. For a public API change, update the package
documentation and these docs (
docs/). - Run
go test -race ./...,golangci-lint run(v2) andgofmt -s -w .. - Open a pull request against
develop, with a clear description of what changed and why. Keep it to one change.
Commit messages follow Conventional Commits (fix(network): …,
feat(dataset): …). The details, the development setup and the pre-commit
hook are in CONTRIBUTING.md.
The API is kept compatible within 1.x: nothing is removed or changed
incompatibly; what is superseded is marked Deprecated: with what to use
instead.
Improve these docs
Every page here is a Markdown file in docs/;
"Open" at the top of a page links its source. The site under website/ is
built from those files, so a fix to a page is a pull request to its file.
Code of conduct
Everyone taking part is expected to follow the Code of Conduct.
See also
- CONTRIBUTING.md: setup, tests, commit style
- SECURITY.md: the security policy
- Built with go-dicom