eject

package
v0.5.6 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package eject provides a cross-platform Eject function that attempts to eject a disc given the volume name.

The implementation currently relies on platform-specific command execution: `eject` on Linux, `drutil` on Darwin, and `powershell` on Windows.

For example:

err := Eject(context.Background(), "D:")

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Eject

func Eject(ctx context.Context, volumeName string) error

Eject attempts to eject the disc identified by volumeName.

Types

This section is empty.

Jump to

Keyboard shortcuts

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