Codebase list golang-github-imdario-mergo / b976f590-0d3e-4bdb-89f3-abe611355bc0/main issue100_test.go
b976f590-0d3e-4bdb-89f3-abe611355bc0/main

Tree @b976f590-0d3e-4bdb-89f3-abe611355bc0/main (Download .tar.gz)

issue100_test.go @b976f590-0d3e-4bdb-89f3-abe611355bc0/main

c9e3399
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
package mergo_test

import (
	"testing"

	"github.com/imdario/mergo"
)

type issue100s struct {
	Member interface{}
}

func TestIssue100(t *testing.T) {
	m := make(map[string]interface{})
	m["Member"] = "anything"

	st := &issue100s{}
	if err := mergo.Map(st, m); err != nil {
		t.Error(err)
	}
}