utils

package
v1.0.311 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2018 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package utils contains utility functions used by the other task-cluster-go packages, such as string manipulation functions and other utility methods.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Comment

func Comment(text, indent string) string

Comments (Java-style) a block of text, with the given indentation (white-space prefix).

func ExitOnFail

func ExitOnFail(err error)

func Indent

func Indent(text, indent string, escapeText bool) string

indents a block of text with an indent string, see http://play.golang.org/p/nV1_VLau7C

func Normalise

func Normalise(name string, dict map[string]bool) string

func NormaliseLower

func NormaliseLower(name string, dict map[string]bool) string

func Underline

func Underline(text string) string

func WriteStringToFile

func WriteStringToFile(content, file string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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