Help us shape the future of Go! Take the 2026 Go Developer Survey

names

package
v0.4.0 Latest Latest
Warning

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

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

Documentation

Overview

Package names checks names that become file names inside Flowi's own directories (pinned examples, saved values, digests), so content from a collection can never choose a path outside them.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllValid

func AllValid(list ...string) bool

AllValid reports whether every name is Valid. Ids and version labels from a collection become directory names in the workspace data dir, so code that joins them into a path checks them first: the codec reports a bad id but still loads it.

func Valid

func Valid(name string) bool

Valid reports whether name is safe as a single file name: letters, digits, '.', '_' and '-', not starting with '.', at most 64 runes. It rules out separators, "..", hidden files and absolute paths.

Types

This section is empty.

Jump to

Keyboard shortcuts

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