Documentation
¶
Index ¶
- func DoubleQuoteWrapElements(inputSlice *[]string, isSkipQuoteOnlyOnExistence bool) (doubleQuoteWrappedItems *[]string)
- func DoubleQuoteWrapElementsWithIndexes(inputSlice []string) (doubleQuoteWrappedItems []string)
- func MsgCsvItems(msg string, csvItems ...interface{}) string
- func MsgWrapMsg(msg, wrappedMsg string) string
- func MsgWrapNumber(name string, number interface{}) string
- func With(start, end, source string) string
- func WithBrackets(source interface{}) string
- func WithBracketsQuotation(source interface{}) string
- func WithCurly(source interface{}) string
- func WithCurlyQuotation(source interface{}) string
- func WithDoubleQuote(source string) string
- func WithDoubleQuoteAny(source interface{}) string
- func WithParenthesis(source interface{}) string
- func WithParenthesisQuotation(source interface{}) string
- func WithPtr(start, end, source *string) *string
- func WithSingleQuote(source string) string
- func WithStartEnd(wrapper, source string) string
- func WithStartEndPtr(wrapper, source *string) *string
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 DoubleQuoteWrapElementsWithIndexes ¶ added in v0.8.0
DoubleQuoteWrapElementsWithIndexes Returns new empty slice if nil or empty slice given.
func MsgCsvItems ¶ added in v0.9.5
func MsgWrapMsg ¶ added in v0.9.5
func MsgWrapNumber ¶ added in v0.9.5
func WithBrackets ¶ added in v0.9.4
func WithBrackets( source interface{}, ) string
WithBrackets
[%v]
func WithBracketsQuotation ¶ added in v0.9.4
func WithBracketsQuotation( source interface{}, ) string
WithBracketsQuotation
[\"%v\"]
func WithCurlyQuotation ¶ added in v0.9.4
func WithCurlyQuotation( source interface{}, ) string
WithCurlyQuotation
{\"%v\"}
func WithDoubleQuote ¶ added in v0.4.1
WithDoubleQuote " + source + " , also take care of any double if available next.
func WithDoubleQuoteAny ¶ added in v0.8.0
func WithDoubleQuoteAny(source interface{}) string
WithDoubleQuoteAny " + source + " , also take care of any double if available next.
func WithParenthesis ¶ added in v0.9.4
func WithParenthesis( source interface{}, ) string
WithParenthesis
(%v)
func WithParenthesisQuotation ¶ added in v0.9.4
func WithParenthesisQuotation( source interface{}, ) string
WithParenthesisQuotation
(\"%v\")
func WithSingleQuote ¶ added in v0.6.8
WithSingleQuote ' + source + ' , also take care of any double if available next.
func WithStartEnd ¶
WithStartEnd wrapper + source + wrapper
func WithStartEndPtr ¶
WithStartEndPtr wrapper + source + wrapper
Types ¶
This section is empty.
Source Files
¶
- CsvWrapElements.go
- DoubleQuoteWrapElementsWithIndexes.go
- MsgCsvItems.go
- MsgWrapMsg.go
- MsgWrapNumber.go
- WithBrackets.go
- WithBracketsQuotation.go
- WithCurly.go
- WithCurlyQuotation.go
- WithDoubleQuote.go
- WithDoubleQuoteAny.go
- WithParenthesis.go
- WithParenthesisQuotation.go
- WithSingleQuote.go
- WrapWith.go
- WrapWithStartEnd.go
- wrapDoubleQuoteOnNonExist.go