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

pathutil

package
v1.3.104-alpha1 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Overview

Package pathutil pkg/util/pathutil/configpath.go c0-com-util

Package pathutil pkg/util/pathutil/util.go c0-com-util

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtomicAppendToFile

func AtomicAppendToFile(filename string, data []byte) error

AtomicAppendToFile calls AtomicWriteFile but appends new data to destiny file

func AtomicWriteFile

func AtomicWriteFile(filename string, data []byte) error

AtomicWriteFile creates a temp file in which to write data, then calls syscall.Rename to swap it and write it on filename for an atomic write.

func EnsureDir

func EnsureDir(path string) error

EnsureDir attempts to create given directory.

func Exists

func Exists(path string) bool

Exists checks if file or directory specified with `path` exists.

Types

This section is empty.

Jump to

Keyboard shortcuts

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