check

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package check provides simple utilities to check the status or state of things

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(filename string) bool

FileExists searches for the provided filename and checks if it is present.

func FilePerms

func FilePerms(filename string) (*os.FileMode, error)

FilePerms searches for the provided filename and checks if it is present and returns the file's permissions.

func FolderExists

func FolderExists(folder string) bool

FolderExists searches for the provided directory name and checks if it is present.

func IsGoFormatted

func IsGoFormatted(b []byte) bool

IsGoFormatted checks if a Go file's contents are formatted using go fmt

Types

This section is empty.

Jump to

Keyboard shortcuts

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