sanitize

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Filename

func Filename(name, ext string) string

Filename turns a raw string into something safe to use as a filename across platforms. The extension is appended separately so it doesn't get mangled.

func StripNonPrintable

func StripNonPrintable(s string) string

StripNonPrintable drops non-printable unicode characters.

func URL

func URL(raw string) (*url.URL, error)

URL validates that a string is an HTTP(S) URL with a host.

Types

This section is empty.

Jump to

Keyboard shortcuts

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