gio

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package gio provides io functions for GoReleaser.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Copy

func Copy(src, dst string) error

Copy recursively copies src into dst with src's file modes.

func CopyWithMode

func CopyWithMode(src, dst string, mode os.FileMode) error

CopyWithMode recursively copies src into dst with the given mode. The given mode applies only to files. Their parent dirs will have the same mode as their src counterparts.

func EqualFileContents

func EqualFileContents(a, b string) (bool, error)

EqualFileContents returns true if both files contents are equal.

func EqualFiles

func EqualFiles(a, b string) (bool, error)

EqualFiles returns true if both files sha256sums and their modes are equal.

func Safe

func Safe(w io.Writer) io.Writer

Safe wraps the given writer to be thread-safe.

Types

This section is empty.

Jump to

Keyboard shortcuts

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