snippetgeneration

package
v1.102.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PathToSampleFileUsedForSnippets

func PathToSampleFileUsedForSnippets(resourceDirName string) (string, error)

PathToSampleFileUsedForSnippets gets the path to the sample file used to generate snippets for the given resource samples directory. Note: the given resource samples directory must be a subdirectory of the overall resources samples directory at config/samples/resources.

Types

type Snippet

type Snippet struct {
	Label               string `yaml:"label"`
	MarkdownDescription string `yaml:"markdownDescription"`
	InsertText          string `yaml:"insertText"`
}

func SnippifyResourceConfig

func SnippifyResourceConfig(resourceConfig []byte) (Snippet, error)

Jump to

Keyboard shortcuts

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