//PointTo applies the given matcher to the value pointed to by actual. It fails if the pointer is //nil. // actual := 5 // Expect(&actual).To(PointTo(Equal(5))) func PointTo(matcher types.GomegaMatcher) types.GomegaMatcher { … } type PointerMatcher … func (m *PointerMatcher) Match(actual interface{ … } func (m *PointerMatcher) FailureMessage(_ interface{ … } func (m *PointerMatcher) NegatedFailureMessage(actual interface{ … }