spec

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package spec classifies template source specs. Both the template loader and the registry need to tell a local path, a git URL, and a "user/repo" (or "alias/id") shorthand apart, so the logic lives here.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGitURL

func IsGitURL(s string) bool

IsGitURL reports whether s looks like a git remote URL.

func IsLocalPath

func IsLocalPath(s string) bool

IsLocalPath reports whether s looks like a local filesystem path.

func IsShorthand

func IsShorthand(s string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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