Paste or type to begin

Original on the left, modified on the right.

Compare two Go files

Compare Go source code with full syntax highlighting. Perfect for reviewing pull requests, comparing package implementations, or tracking changes. Supports goroutines, channels, interfaces, generics, and all Go features.

Features

Frequently asked questions

Does it support Go generics?
Yes. Type parameters, constraints, and all Go 1.18+ generics syntax are highlighted.
Can I format Go code?
Auto-formatting is not available in-browser for Go, but you can run gofmt locally first.
Does it handle Go modules?
You can compare go.mod, go.sum, and any Go source files.

More diff tools