// Top returns the error on top of the stack (last error pushed)
Top returns the error on top of the stack (last error pushed)
// Top returns the error on top of the stack ( last error pushed )
func (stack ErrorStack) Top() error {
	if len(stack.errors) == 0 {
		return nil
	}
	return stack.errors[len(stack.errors)-1]
}
func ( stack ErrorStack ) Top ( ) error { if len ( stack . errors ) == 0 { return nil } return stack . errors [ len ( stack . errors ) - 1 ] }
Top returns the error on top of the stack (last error pushed)
Top returns the error on top of the stack ( last error pushed )