slicecmp

package module
v0.0.0-...-595e921 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: MIT Imports: 2 Imported by: 0

README

slicecmp

Build Status Go Report Card Coverage Status

slicecmp prints two or more string slices neatly side-by-side for visual inspection.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal(a, b []string) bool

Equal reports if two string slices are identical

func Sprint

func Sprint(headings []string, slices ...[]string) string

Sprint "pretty-prints" (formats) slices side by side with the default formatting and returns the resulting string.

func Sprint2

func Sprint2(headingA string, sliceA []string, headingB string, sliceB []string) string

Sprint2 "pretty-prints" (formats) two slices side by side with the default formatting and returns the resulting string.

func Sprintf

func Sprintf(separator rune, spacing int, headings []string, slices ...[]string) string

Sprintf "pretty-prints" (formats) slices side by side according to the specified formatting options and returns the resulting string.

func Sprintf2

func Sprintf2(headingA string, sliceA []string, headingB string, sliceB []string, separator rune, spacing int) string

Sprintf2 "pretty-prints" (formats) two slices side by side according to the specified formatting options and returns the resulting string.

func Transform

func Transform(m [][]string) [][]string

Transform swaps rows and columns in a string matrix, so you can use other slicecmp functions easliy if your data is "the wrong way round".

Types

This section is empty.

Jump to

Keyboard shortcuts

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