mirror of
https://github.com/golang/go
synced 2024-11-22 15:44:53 -07:00
13514d4e0b
Most already had comments (yay); adjusted for consistency. R=golang-dev, bradfitz CC=golang-dev https://golang.org/cl/5676102
21 lines
420 B
Go
21 lines
420 B
Go
// true # used by private.go
|
|
|
|
// Copyright 2011 The Go Authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style
|
|
// license that can be found in the LICENSE file.
|
|
|
|
// Imported by private.go, which should not be able to see the private method.
|
|
|
|
package p
|
|
|
|
type Exported interface {
|
|
private()
|
|
}
|
|
|
|
type Implementation struct{}
|
|
|
|
func (p *Implementation) private() {}
|
|
|
|
var X = new(Implementation)
|
|
|