func IsPrimitiveKind(k reflect.Kind) bool {
	for _, kind := range primitiveKinds {
		if k == kind {
			return true
		}
	}
	return false
}
IsPrimitiveKind returns true if the provided reflect.Kind is for a primitive type, otherwise false.
package reflecthelpers
import (
	"reflect"
	"github.com/pkg/errors"
)
var primitiveKinds = []reflect.Kind{
	reflect.Bool,
	reflect.Int,
	reflect.Int8,
	reflect.Int16,
	reflect.Int32,
	reflect.Int64,
	reflect.Uint,
	reflect.Uint8,
	reflect.Uint16,
	reflect.Uint32,
	reflect.Uint64,
	reflect.Uintptr,
	reflect.Float32,
	reflect.Float64,
	reflect.Complex64,
	reflect.Complex128,
	reflect.String,
}