snippetmetadata

package
v0.8.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package snippetmetadata provides cross-language functionality for working with metadata files associated with generated sample code.

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoClientLibraryField is the error returned if a snippet metadata file
	// has no clientLibrary field at the top level.
	ErrNoClientLibraryField = errors.New("no clientLibrary field at the top level")
)

Functions

func ReformatAll

func ReformatAll(dir string) error

ReformatAll reformats all snippet metadata files (filenames starting with "snippet_metadata" and ending with ".json") under the given directory (including subdirectories).

func UpdateAllLibraryVersions

func UpdateAllLibraryVersions(dir, version string) error

UpdateAllLibraryVersions updates the clientLibrary.version field of all snippet metadata files (filenames starting with "snippet_metadata" and ending with ".json") under the given directory (including subdirectories).

Types

This section is empty.

Jump to

Keyboard shortcuts

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