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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="go.gen" Version="1.23.1.1">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="go.gen" Version="1.23.1.1" />
                    
Directory.Packages.props
<PackageReference Include="go.gen">
  <PrivateAssets>all</PrivateAssets>
  <IncludeAssets>runtime; build; native; contentfiles; analyzers</IncludeAssets>
</PackageReference>
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add go.gen --version 1.23.1.1
                    
#r "nuget: go.gen, 1.23.1.1"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package go.gen@1.23.1.1
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=go.gen&version=1.23.1.1
                    
Install as a Cake Addin
#tool nuget:?package=go.gen&version=1.23.1.1
                    
Install as a Cake Tool

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 GoImplement wiring),
  • pointer-receiver method overloads,
  • implicit type-alias conversions,
  • struct embedding / promotion,
  • package init ordering.

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.

There are no supported framework assets in this package.

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