Codebase list golang-github-imdario-mergo / a962cd97-6e5e-4cd5-a9cf-58dfd3df3e48/upstream/1.0.0 issue100_test.go
a962cd97-6e5e-4cd5-a9cf-58dfd3df3e48/upstream/1.0.0

Tree @a962cd97-6e5e-4cd5-a9cf-58dfd3df3e48/upstream/1.0.0 (Download .tar.gz)

issue100_test.go @a962cd97-6e5e-4cd5-a9cf-58dfd3df3e48/upstream/1.0.0raw · history · blame

package mergo_test

import (
	"testing"

	"dario.cat/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)
	}
}