merge

package
v0.0.0-...-53aa38e Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2016 License: MIT Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SPLIT = ":"

Functions

func SimpleMerge

func SimpleMerge(src string, dst string, split string, conf c.Conf, seelogLogger seelog.LoggerInterface) (result string, err error)

Merge the old values(src) into the new values (dst)

Types

type Merge

type Merge struct {
	Values []*Value
	// contains filtered or unexported fields
}

func Combine

func Combine(src *Merge, dst *Merge) *Merge

Combine our results and return the result

func (*Merge) AddValues

func (s *Merge) AddValues(parts []string)

Take slice of split with everything after the first split being the value

func (*Merge) MergeInto

func (s *Merge) MergeInto(dst string) (string, error)

Merge values from the old values map into the new string.

type Value

type Value struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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