simplewrap

package
v0.6.6 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 2 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DoubleQuoteWrapElements added in v0.4.1

func DoubleQuoteWrapElements(
	inputSlice *[]string,
	isSkipQuoteOnlyOnExistence bool,
) (doubleQuoteWrappedItems *[]string)

DoubleQuoteWrapElements Returns new empty slice if nil or empty slice given.

Reference : https://play.golang.org/p/s_uN2-ckk2F | https://stackoverflow.com/a/48832120

func With

func With(start, end, source string) string

func WithDoubleQuote added in v0.4.1

func WithDoubleQuote(source string) string

WithDoubleQuote " + source + " , also take care of any double if available next.

func WithPtr

func WithPtr(start, end, source *string) *string

func WithStartEnd

func WithStartEnd(wrapper, source string) string

WithStartEnd wrapper + source + wrapper

func WithStartEndPtr

func WithStartEndPtr(wrapper, source *string) *string

WithStartEndPtr wrapper + source + wrapper

Types

This section is empty.

Jump to

Keyboard shortcuts

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