strhelp

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 0 Imported by: 0

Documentation

Overview

Package strhelp provides helpers to work with strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bracket

func Bracket(msg string) string

Bracket returns brackets added around text if any.

func First

func First(list ...string) string

First returns the first non empty string found.

func Parenthesis

func Parenthesis(msg string) string

Parenthesis returns parenthesis added around text if any.

func Separator

func Separator(prev, sep, after string) string

Separator returns the string with separator if needed.

func YesNo

func YesNo(b bool) string

YesNo returns Yes or No according to the bool value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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