github.com/flyinox/gosm@v0.0.0-20171117061539-16768cb62077/src/go/doc/testdata/predeclared.go (about)

     1  // Copyright 2016 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  // Package predeclared is a go/doc test for handling of
     6  // exported methods on locally-defined predeclared types.
     7  // See issue 9860.
     8  package predeclared
     9  
    10  type error struct{}
    11  
    12  // Must not be visible.
    13  func (e error) Error() string {
    14  	return ""
    15  }
    16  
    17  type bool int
    18  
    19  // Must not be visible.
    20  func (b bool) String() string {
    21  	return ""
    22  }