Help us shape the future of Go! Take the 2026 Go Developer Survey

symlink

package
v0.48.0 Latest Latest
Warning

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

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

Documentation

Overview

Package symlink keeps the CLI from writing through a symlink.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Refuse

func Refuse(root, rel string) error

Refuse returns an error when the file at rel inside root, or a directory between root and it, is a symlink. Writing through one would change a file outside root, such as ~/.volcano/config.json named by a symlink in a cloned repository. root and the directories above it may be symlinks: the user chose that directory. Call Refuse before creating directories or writing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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