corecsv

package
v1.1.4 Latest Latest
Warning

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

Go to latest
Published: Jan 24, 2022 License: MIT Imports: 3 Imported by: 11

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AnyItemsToCsvString

func AnyItemsToCsvString(
	joiner string,
	isIncludeQuote,
	isIncludeSingleQuote bool,
	references ...interface{},
) string

AnyItemsToCsvString

if references empty or len 0 then empty string returned.

Final join whole lines with the joiner given (... joiner item)

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func AnyItemsToCsvStrings

func AnyItemsToCsvStrings(
	isIncludeQuote,
	isIncludeSingleQuote bool,
	references ...interface{},
) []string

AnyItemsToCsvStrings

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func AnyItemsToStringDefault

func AnyItemsToStringDefault(
	references ...interface{},
) string

func CompileStringersToCsvStrings added in v0.9.5

func CompileStringersToCsvStrings(
	isIncludeQuote,
	isIncludeSingleQuote bool,
	compileStringerFunctions ...func() string,
) []string

CompileStringersToCsvStrings

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func CompileStringersToString added in v0.9.5

func CompileStringersToString(
	joiner string,
	isIncludeQuote,
	isIncludeSingleQuote bool,
	compileStringerFunctions ...func() string,
) string

func CompileStringersToStringDefault added in v0.9.5

func CompileStringersToStringDefault(
	compileStringerFunctions ...func() string,
) string

func DefaultAnyCsv added in v1.0.8

func DefaultAnyCsv(
	references ...interface{},
) string

func DefaultCsv added in v1.0.8

func DefaultCsv(
	references ...string,
) string

func StringersToCsvStrings added in v0.9.5

func StringersToCsvStrings(
	isIncludeQuote,
	isIncludeSingleQuote bool,
	stringerFunctions ...fmt.Stringer,
) []string

StringersToCsvStrings

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func StringersToString added in v0.9.5

func StringersToString(
	joiner string,
	isIncludeQuote,
	isIncludeSingleQuote bool,
	stringerFunctions ...fmt.Stringer,
) string

func StringersToStringDefault added in v0.9.5

func StringersToStringDefault(
	stringerFunctions ...fmt.Stringer,
) string

func StringsToCsvString

func StringsToCsvString(
	joiner string,
	isIncludeQuote,
	isIncludeSingleQuote bool,
	references ...string,
) string

StringsToCsvString

if references empty or len 0 then empty string returned.

Final join whole lines with the joiner given (... joiner item)

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func StringsToCsvStrings

func StringsToCsvStrings(
	isIncludeQuote,
	isIncludeSingleQuote bool,
	references ...string,
) []string

StringsToCsvStrings

Formats :

  • isIncludeQuote && isIncludeSingleQuote = '%v' will be added
  • isIncludeQuote && !isIncludeSingleQuote = "'%v'" will be added
  • !isIncludeQuote && !isIncludeSingleQuote = %v will be added

func StringsToStringDefault

func StringsToStringDefault(
	references ...string,
) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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