utils

package
v0.0.0-...-d75b94e Latest Latest
Warning

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

Go to latest
Published: May 26, 2018 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Diff

func Diff(savedPairs string, actualPairs string) (string, error)

Diff returns differencies between two set of pairs * if pairs are equal the result is "" string * if we have new pair, the ADDED PAIRNAME\n shall be added to the return set * if some pairs were deleted, that DELETED PAIRNAME\n shall be added to the return set * example (note that several diffs are splitted by newlines, e.g. \n): ADDED: KGZBTC ADDED: BTCKGZ DELETED: MAVROETH

func DiffSets

func DiffSets(savedPairs string, actualPairs string) (string, error)

DiffSets works as Diff, but with another algo

func GetRandString

func GetRandString() string

GetRandString returns rand string with 5 chars long

func SaveNonEqualStringsToFiles

func SaveNonEqualStringsToFiles(name string, string1 string, string2 string)

SaveNonEqualStringsToFiles should save two different stings to files this needs for debug

Types

This section is empty.

Jump to

Keyboard shortcuts

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