go.gen
1.23.1.1
dotnet add package go.gen --version 1.23.1.1
NuGet\Install-Package go.gen -Version 1.23.1.1
<PackageReference Include="go.gen" Version="1.23.1.1"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
<PackageVersion Include="go.gen" Version="1.23.1.1" />
<PackageReference Include="go.gen"> <PrivateAssets>all</PrivateAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets> </PackageReference>
paket add go.gen --version 1.23.1.1
#r "nuget: go.gen, 1.23.1.1"
#:package go.gen@1.23.1.1
#addin nuget:?package=go.gen&version=1.23.1.1
#tool nuget:?package=go.gen&version=1.23.1.1
go.gen — go2cs source generator
go.gen is the Roslyn source generator / analyzer used by
go2cs to emit the compile-time C# glue that makes
converted Go code behave like Go:
- interface satisfaction (duck-typed
GoImplementwiring), - pointer-receiver method overloads,
- implicit type-alias conversions,
- struct embedding / promotion,
- package
initordering.
Install go.gen when you convert your own Go code to C# with go2cs — the generator must run at
compile time so the generated members are available. The pre-converted Go standard-library packages
(go.fmt, go.strings, …) already have this glue baked into their compiled assemblies, so consuming
those packages does not require go.gen.
This is a development-time dependency (analyzer); it ships no runtime assembly.
License
MIT. See the go2cs repository.
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 1.23.1.1 | 5 | 7/14/2026 |