open

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func App

func App(input string, appName string) error

App will open a file directory, or URI using the specified application. Both input and appName are validated to prevent command injection attacks.

func WithDefaultApp

func WithDefaultApp(input string) error

WithDefaultApp open a file, directory, or URI using the OS's default application for that object type. The input is validated to prevent path traversal and command injection attacks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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