columnize.go
func MergeConfig(a, b *Config) *Config {
	// Return quickly if either side was nil
	if a == nil {
		return b
	}
	if b == nil {
		return a
	}

	var result Config = *a

	if b.Delim != "" {
		result.Delim = b.Delim
	}
	if b.Glue != "" {
		result.Glue = b.Glue
	}
	if b.Prefix != "" {
		result.Prefix = b.Prefix
	}
	if b.Empty != "" {
		result.Empty = b.Empty
	}
	if b.NoTrim {
		result.NoTrim = true
	}

	return &result
}
func MergeConfig(a, b *Config) *Config {
	// Return quickly if either side was nil
	if a == nil {
		return b
	}
	if b == nil {
		return a
	}

	var result Config = *a

	if b.Delim != "" {
		result.Delim = b.Delim
	}
	if b.Glue != "" {
		result.Glue = b.Glue
	}
	if b.Prefix != "" {
		result.Prefix = b.Prefix
	}
	if b.Empty != "" {
		result.Empty = b.Empty
	}
	if b.NoTrim {
		result.NoTrim = true
	}

	return &result
}
func MergeConfig ( a , b * Config ) * Config { // Return quickly if either side was nil if a == nil { return b } if b == nil { return a } var result Config = * a if b . Delim != " " { result . Delim = b . Delim } if b . Glue != " " { result . Glue = b . Glue } if b . Prefix != " " { result . Prefix = b . Prefix } if b . Empty != " " { result . Empty = b . Empty } if b . NoTrim { result . NoTrim = true } return & result }
// MergeConfig merges two config objects together and returns the resulting
// configuration. Values from the right take precedence over the left side.
MergeConfig merges two config objects together and returns the resulting configuration . Values from the right take precedence over the left side .