sanitize

package
v1.3.3 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Name

func Name(path string) string

Name applies filepath.Localize on the path and replaces any occurrences of following:

  • "/" with "_"
  • "\x00" (null) with ""

func WindowsName

func WindowsName(path string) string

WindowsName applies filepath.Localize on the base name. It also replaces any reserved characters with underscores, and all ASCII control characters are removed.

See: https://learn.microsoft.com/en-us/windows/win32/fileio/naming-a-file

Types

This section is empty.

Jump to

Keyboard shortcuts

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