regular

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package regular reads only regular files. A repository may plant a symlink to a device or named pipe, which would block forever, or to one of the user's files outside it; see Within.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadFile

func ReadFile(path string) ([]byte, error)

func ReadFileIn

func ReadFileIn(root, path string) ([]byte, error)

func Within

func Within(root, path string) (string, error)

Within resolves symlinks in both path and root and fails if path leads outside root.

Types

This section is empty.

Jump to

Keyboard shortcuts

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