util

package
v0.0.0-...-1e7c8b3 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: GPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package util contains a couple of utility methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(name string) bool

FileExists reports whether the named file or directory exists.

func HasSSHAgent

func HasSSHAgent() bool

HasSSHAgent reports whether the SSH agent is available

func HashFile

func HashFile(filePath string) (string, error)

HashFile returns the SHA1-hash of the contents of the specified file.

Types

This section is empty.

Jump to

Keyboard shortcuts

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