Documentation
¶
Index ¶
- func CurlyWrap(source interface{}) string
- func CurlyWrapIf(isCurly bool, source interface{}) string
- func DoubleQuoteWrapElements(isSkipQuoteOnlyOnExistence bool, inputElements ...string) (doubleQuoteWrappedItems []string)
- func DoubleQuoteWrapElementsWithIndexes(inputElements ...string) (doubleQuoteWrappedItems []string)
- func MsgCsvItems(msg string, csvItems ...interface{}) string
- func MsgWrapMsg(msg, wrappedMsg string) string
- func MsgWrapNumber(name string, number interface{}) string
- func ParenthesisWrap(source interface{}) string
- func ParenthesisWrapIf(isSquareWrap bool, source interface{}) string
- func SquareWrap(source interface{}) string
- func SquareWrapIf(isSquareWrap bool, source interface{}) string
- func TitleCurlyMeta(title, value, meta interface{}) string
- func TitleCurlyWrap(title, value interface{}) string
- func TitleQuotationMeta(title, value, meta interface{}) string
- func TitleSquare(title, value interface{}) string
- func TitleSquareCsvMeta(title string, value interface{}, metaCsvItems ...interface{}) string
- func TitleSquareMeta(title, value, meta interface{}) string
- func TitleSquareMetaUsingFmt(title, value, meta fmt.Stringer) string
- func ToJsonName(source 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 CurlyWrapIf ¶ added in v1.1.6
func DoubleQuoteWrapElements ¶ added in v0.4.1
func DoubleQuoteWrapElements( isSkipQuoteOnlyOnExistence bool, inputElements ...string, ) (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
func DoubleQuoteWrapElementsWithIndexes( inputElements ...string, ) (doubleQuoteWrappedItems []string)
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 ParenthesisWrap ¶ added in v1.1.6
func ParenthesisWrap( source interface{}, ) string
func ParenthesisWrapIf ¶ added in v1.1.6
func SquareWrap ¶ added in v1.1.6
func SquareWrap( source interface{}, ) string
func SquareWrapIf ¶ added in v1.1.6
func TitleCurlyMeta ¶ added in v1.0.8
func TitleCurlyMeta( title, value, meta interface{}, ) string
TitleCurlyMeta
Example :
- constants.CurlyTitleMetaWrapFormat
- "%v: {%v} (%v)"
func TitleCurlyWrap ¶ added in v1.0.8
func TitleCurlyWrap( title, value interface{}, ) string
func TitleQuotationMeta ¶ added in v1.0.8
func TitleQuotationMeta( title, value, meta interface{}, ) string
TitleQuotationMeta
Example :
- constants.QuotationTitleMetaWrapFormat
- "%v: \"%v\" (%v)"
func TitleSquare ¶ added in v1.0.8
func TitleSquare( title, value interface{}, ) string
func TitleSquareCsvMeta ¶ added in v1.0.8
TitleSquareCsvMeta
Usages TitleSquareMeta to give the final output
Example :
- Title : [Value] (csv meta items)
func TitleSquareMeta ¶ added in v1.0.8
func TitleSquareMeta( title, value, meta interface{}, ) string
TitleSquareMeta
Example :
- constants.SquareTitleMetaWrapFormat
- "%v: [%v] (%v)"
func TitleSquareMetaUsingFmt ¶ added in v1.0.8
func ToJsonName ¶ added in v1.1.9
func ToJsonName(source interface{}) string
ToJsonName
Alias for WithDoubleQuoteAny " + source + " , also take care of any double if available next.
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
Example : {\"%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
Alias for ToJsonName " + 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
- CurlyWrap.go
- CurlyWrapIf.go
- DoubleQuoteWrapElementsWithIndexes.go
- MsgCsvItems.go
- MsgWrapMsg.go
- MsgWrapNumber.go
- ParenthesisWrap.go
- ParenthesisWrapIf.go
- SquareWrap.go
- SquareWrapIf.go
- TitleCurlyMeta.go
- TitleCurlyWrap.go
- TitleQuotationMeta.go
- TitleSquare.go
- TitleSquareCsvMeta.go
- TitleSquareMeta.go
- TitleSquareMetaUsingFmt.go
- ToJsonName.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