Skip to content

cemkiy/mergo

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Mergo

A helper to merge structs and maps in Golang. Useful for configuration default values, avoiding messy if-statements.

mergo: Thanks to imdario/mergo

And tihs version allows for empty values. Example: false, 0 or []

Your struct variables must be pointers. Because golang allows nil variables with pointer.

Installation

go get github.com/cemkiy/mergo

// use in your .go code
import (
    "github.com/cemkiy/mergo"
)

License

BSD 3-Clause license, as Go language.

About

Mergo: Allows false, 0, empty array

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Go 100.0%