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
<PackageReference Include="go.go.parser" Version="1.26.10.1" />
<PackageVersion Include="go.go.parser" Version="1.26.10.1" />
<PackageReference Include="go.go.parser" />
paket add go.go.parser --version 1.26.10.1
#r "nuget: go.go.parser, 1.26.10.1"
#:package go.go.parser@1.26.10.1
#addin nuget:?package=go.go.parser&version=1.26.10.1
#tool nuget:?package=go.go.parser&version=1.26.10.1
go.go.parser
C# package converted from the Go standard library by go2cs.
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 | Versions 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. |
-
net10.0
- go.bytes (>= 1.26.10.1)
- go.errors (>= 1.26.10.1)
- go.fmt (>= 1.26.10.1)
- go.go.ast (>= 1.26.10.1)
- go.go.build.constraint (>= 1.26.10.1)
- go.go.internal.scannerhooks (>= 1.26.10.1)
- go.go.scanner (>= 1.26.10.1)
- go.go.token (>= 1.26.10.1)
- go.io (>= 1.26.10.1)
- go.io.fs (>= 1.26.10.1)
- go.lib (>= 1.26.10.1)
- go.os (>= 1.26.10.1)
- go.path.filepath (>= 1.26.10.1)
- go.strings (>= 1.26.10.1)
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 |