platform

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2026 License: Apache-2.0, MIT Imports: 4 Imported by: 0

Documentation

Overview

Package platform provides platform-specific file operations.

Index

Constants

This section is empty.

Variables

View Source
var ErrSymlink = errors.New("symbolic links not supported")

ErrSymlink is returned when attempting to open a symbolic link.

Functions

func FileOwner

func FileOwner(info fs.FileInfo) (uid, gid uint32)

FileOwner extracts UID and GID from file info on Unix systems.

func OpenFileNoFollow

func OpenFileNoFollow(root *os.Root, name string) (*os.File, error)

OpenFileNoFollow opens a file without following symlinks. Returns ErrSymlink if the path is a symbolic link.

Types

This section is empty.

Jump to

Keyboard shortcuts

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