go.go.doc.comment
1.23.1.5
dotnet add package go.go.doc.comment --version 1.23.1.5
NuGet\Install-Package go.go.doc.comment -Version 1.23.1.5
<PackageReference Include="go.go.doc.comment" Version="1.23.1.5" />
<PackageVersion Include="go.go.doc.comment" Version="1.23.1.5" />
<PackageReference Include="go.go.doc.comment" />
paket add go.go.doc.comment --version 1.23.1.5
#r "nuget: go.go.doc.comment, 1.23.1.5"
#:package go.go.doc.comment@1.23.1.5
#addin nuget:?package=go.go.doc.comment&version=1.23.1.5
#tool nuget:?package=go.go.doc.comment&version=1.23.1.5
go.go.doc.comment
C# package converted from the Go standard library by go2cs.
Package comment implements parsing and reformatting of Go doc comments, (documentation comments), which are comments that immediately precede a top-level declaration of a package, const, func, type, or var.
Go doc comment syntax is a simplified subset of Markdown that supports links, headings, paragraphs, lists (without nesting), and preformatted text blocks. The details of the syntax are documented at https://go.dev/doc/comment.
To parse the text associated with a doc comment (after removing comment markers), use a [Parser]:
var p comment.Parser
doc := p.Parse(text)
The result is a [*Doc]. To reformat it as a doc comment, HTML, Markdown, or plain text, use a [Printer]:
var pr comment.Printer
os.Stdout.Write(pr.Text(doc))
The [Parser] and [Printer] types are structs whose fields can be modified to customize the operations. For details, see the documentation for those types.
Use cases that need additional control over reformatting can implement their own logic by inspecting the parsed syntax itself. See the documentation for [Doc], [Block], [Text] for an overview and links to additional types.
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. The go2cs conversion itself is distributed under the MIT license.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 is compatible. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 was computed. 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. |
-
net9.0
- go.bytes (>= 1.23.1.5)
- go.fmt (>= 1.23.1.5)
- go.lib (>= 1.23.1.5)
- go.slices (>= 1.23.1.5)
- go.sort (>= 1.23.1.5)
- go.strconv (>= 1.23.1.5)
- go.strings (>= 1.23.1.5)
- go.unicode (>= 1.23.1.5)
- go.unicode.utf8 (>= 1.23.1.5)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on go.go.doc.comment:
| Package | Downloads |
|---|---|
|
go.go.doc
go.doc (net9.0 - Release) -- C# project converted from Go source |
|
|
go.go.printer
go.printer (net9.0 - Release) -- C# project converted from Go source |
GitHub repositories
This package is not used by any popular GitHub repositories.