Movatterモバイル変換


[0]ホーム

URL:


pkgsite

package
v0.123.0Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License:Apache-2.0, BSD-3-ClauseImports:10Imported by:0

Details

Repository

github.com/googleapis/google-cloud-go

Links

Documentation

Overview

Package pkgsite is not for external use. May change at any time withoutwarning.

Copied fromhttps://github.com/golang/pkgsite/blob/ff1e697b104e751da362159cf6c7743898eea3fe/internal/fetch/dochtml/internal/render/andhttps://github.com/golang/pkgsite/tree/88f8a28ab2102416529d05d11e8135a43e146d46/internal/fetch/dochtml.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

funcPrintType

func PrintType(fset *token.FileSet, declast.Decl, toURL func(string,string)string, topLevelDecls map[interface{}]bool)string

PrintType returns a string representation of the decl.

PrintType works by:

  1. Generate a map from every identifier to a URL for the identifier (or noURL if the identifier shouldn't link).
  2. ast.Inspect the decl to get an ordered slice of every identifier to thelink for it, using the map from step 1.
  3. Print out the plain doc for the decl.
  4. Use scanner.Scanner to find every identifier (in the same order as step2). If there is a link for the identifier, insert it. Otherwise, printthe plain doc.

funcSynopsis

func Synopsis(fset *token.FileSet, nast.Node, linkify func(string)string)string

Synopsis returns a one-line summary of the given input node.

funcTopLevelDeclsadded inv0.77.0

func TopLevelDecls(pkg *doc.Package) map[interface{}]bool

TopLevelDecls returns the top level declarations in the package.

Types

This section is empty.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp