util

package
v0.0.0-...-7511a42 Latest Latest
Warning

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

Go to latest
Published: Dec 5, 2016 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package util provides some helper methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FilesExistAny

func FilesExistAny(path string, files ...string) bool

FilesExistAny checks if the given file(s) exists in the root folder.

func FindOccurrencesInTree

func FindOccurrencesInTree(path, regex, filePattern string) int

FindOccurrencesInTree tries to match the regular expression in files matching the file pattern. It returns the number of matchings.

func FormatFail

func FormatFail(msg string) (failMessage string)

FormatFail decorates a string for the text output.

func FormatSuccess

func FormatSuccess(msg string) (successMessage string)

FormatSuccess decorates a string for the text output.

Types

This section is empty.

Jump to

Keyboard shortcuts

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