gensnippets

package module
v0.0.0-...-3a708ea Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Overview

Package gensnippets processes GoDoc examples.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(rootDir, outDir string, apiShortnames map[string]string) error

Generate reads all modules in rootDir and outputs their examples in outDir.

func GenerateSnippetsDirs

func GenerateSnippetsDirs(rootDir, outDir string, apiShortNames map[string]string, dirs []string) error

GenerateSnippetsDirs takes in specified modules in rootDir and outputs their examples in outDir. If a single directory is passed in that is the root directory, all modules will be run.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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