source

package
v0.0.0-...-989785b Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package source defines interfaces for generating URL links in documentation.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinkOptions

type LinkOptions struct {
	Line int
}

LinkOptions contains options for configuring hyperlinks to source files

type Linker

type Linker interface {
	LinkToSource(packagePath string, options LinkOptions) url.URL
}

Linker can generate hyperlinks for any given package's file

type ScrapeChecker

type ScrapeChecker interface {
	ShouldScrapePackage(packagePath string) bool
}

ScrapeChecker returns whether or not a given package's path should be scraped and included in the output

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL