go.go.parser 1.26.10.1

dotnet add package go.go.parser --version 1.26.10.1
                    
NuGet\Install-Package go.go.parser -Version 1.26.10.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.go.parser" Version="1.26.10.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="go.go.parser" Version="1.26.10.1" />
                    
Directory.Packages.props
<PackageReference Include="go.go.parser" />
                    
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.go.parser --version 1.26.10.1
                    
#r "nuget: go.go.parser, 1.26.10.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.go.parser@1.26.10.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.go.parser&version=1.26.10.1
                    
Install as a Cake Addin
#tool nuget:?package=go.go.parser&version=1.26.10.1
                    
Install as a Cake Tool

go.go.parser

C# package converted from the Go standard library by go2cs.

Tests Docs
Source Source

From C#, call this package through the static class go.go.parser_package; see Consuming converted Go from C#.

Package parser implements a parser for Go source files.

The [ParseFile] function reads file input from a string, []byte, or io.Reader, and produces an [ast.File] representing the complete abstract syntax tree of the file.

The [ParseExprFrom] function reads a single source-level expression and produces an [ast.Expr], the syntax tree of the expression.

The parser accepts a larger language than is syntactically permitted by the Go spec, for simplicity, and for improved robustness in the presence of syntax errors. For instance, in method declarations, the receiver is treated like an ordinary parameter list and thus may contain multiple entries where the spec permits exactly one. Consequently, the corresponding field in the AST (ast.FuncDecl.Recv) field is not restricted to one entry.

Applications that need to parse one or more complete packages of Go source code may find it more convenient not to interact directly with the parser but instead to use the Load function in package golang.org/x/tools/go/packages.


Copyright 2009 The Go Authors. All rights reserved. This C# package is converted from Go standard library source; use of that source is governed by a BSD-style license that can be found in the LICENSE file.

Artwork licensed under Creative Commons Attribution 3.0; see artwork attribution.

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (5)

Showing the top 5 NuGet packages that depend on go.go.parser:

Package Downloads
go.go.types

go.types (net10.0 - Release) -- C# project converted from Go source

go.go.build

go.build (net10.0 - Release) -- C# project converted from Go source

go.internal.fuzz

internal.fuzz (net10.0 - Release) -- C# project converted from Go source

go.go.internal.srcimporter

go.internal.srcimporter (net10.0 - Release) -- C# project converted from Go source

go.go.format

go.format (net10.0 - Release) -- C# project converted from Go source

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.26.10.1 85 10/26/2026
1.24.13.7 168 10/14/2026
1.24.13.6 168 10/12/2026
1.24.13.5 176 10/9/2026
1.24.13.4 179 10/6/2026
1.24.13.3 177 10/2/2026
1.24.13.2 177 9/24/2026
1.24.13.1 183 9/24/2026
1.23.12.3 201 9/8/2026
1.23.12.2 187 8/29/2026
1.23.12.1 202 8/26/2026
1.23.1.7 271 8/23/2026
1.23.1.6 223 8/11/2026
1.23.1.5 227 8/9/2026
1.23.1.4 241 8/8/2026
1.23.1.3 260 8/4/2026
1.23.1.2 262 7/27/2026
1.23.1.1 274 7/14/2026