golhashmap

package
v0.0.0-...-1bfd785 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 6 Imported by: 10

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HashMapEngines = make(map[string]HashMapEngine)

Functions

func HashMapToCSV

func HashMapToCSV(hmap HashMap) string

func HashMapToJSON

func HashMapToJSON(hmap HashMap) string

func RegisterHashMapEngine

func RegisterHashMapEngine(name string, hashmapEngine HashMapEngine)

Types

type CSVmap

type CSVmap struct{}

func (CSVmap) FromHashMap

func (csvmap CSVmap) FromHashMap(hmap HashMap) string

func (CSVmap) ToHashMap

func (csvmap CSVmap) ToHashMap(csvalues string) HashMap

type HashMap

type HashMap map[string]string

func CSVToHashMap

func CSVToHashMap(csvalues string) HashMap

func JSONToHashMap

func JSONToHashMap(jsonalues string) HashMap

func (HashMap) Count

func (hmap HashMap) Count() int

func (HashMap) Items

func (hmap HashMap) Items() [][]string

func (HashMap) Keys

func (hmap HashMap) Keys() []string

func (HashMap) Values

func (hmap HashMap) Values() []string

type HashMapEngine

type HashMapEngine interface {
	ToHashMap(data string) HashMap
	FromHashMap(hashmap HashMap) string
}

func GetHashMapEngine

func GetHashMapEngine(name string) HashMapEngine

type JSONmap

type JSONmap struct{}

func (JSONmap) FromHashMap

func (jsonmap JSONmap) FromHashMap(hmap HashMap) string

func (JSONmap) ToHashMap

func (jsonmap JSONmap) ToHashMap(jsonalues string) HashMap

Jump to

Keyboard shortcuts

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