INNER CODE UNIT · Go

TestCopyWithConverterStrToStrPointer

jinzhu/copier · copier_converter_test.go:143

func TestCopyWithConverterStrToStrPointer(t *testing.T) {
	type SrcStruct struct {
		Field1 string
	}

	type DestStruct struct {
		Field1 *string
	}

	src := SrcStruct{
		Field1: "",
	}

	var dst DestStruct

	ptrStrType := ""

	err := copier.CopyWithOption(&dst, &src, copier.Option{

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…