go2cs features

What the converter does for you, then how much of Go it covers, then real converted files to judge it by. For where it falls short, see Limitations. For a feature-by-feature table of what works, what works with limits and what does not yet, see Go feature support.

What the converter does

Go language coverage

go2cs converts the full Go language surface except a few generic forms, which it reports and does not yet convert: a generic type alias whose target is an anonymous struct or interface type (type A[T any] = struct{…}), and three shapes of a generic call over a pointer element: one whose constraint shares the element’s storage (Walk[*Node] under Walk[N Tree[N]] with Children() []N, refused with GO2CS2002; see Limitations), and the shapes refused as GO2CS2005 and GO2CS2006 (diagnostic codes).

Types & values

Functions & methods

Concurrency

Composition & polymorphism

Control flow & packaging

See ConversionStrategies.md for an example-driven tour of how each construct maps to C# (with ConversionStrategies-Reference/ for the full detail).

Real standard-library conversions, side by side

The main page pairs converted standard-library files with their Go source, from simple to complex: Real standard-library conversions, side by side.