// conversion type-checks the conversion T(x). // The result is in x. func (check *Checker) conversion(x *operand, T Type) { … } // convertibleTo reports whether T(x) is valid. In the failure case, *cause // may be set to the cause for the failure. // The check parameter may be nil if convertibleTo is invoked through an // exported API call, i.e., when all methods have been type-checked. func (x *operand) convertibleTo(check *Checker, T Type, cause *string) bool { … } func isUintptr(typ Type) bool { … } func isUnsafePointer(typ Type) bool { … } func isPointer(typ Type) bool { … } func isBytesOrRunes(typ Type) bool { … }