mirror of
https://github.com/golang/go
synced 2024-11-24 22:27:57 -07:00
ab5d2bf92f
Added a format option to inhibit output of .Note field in printing, and enabled that option during export. Added test. Fixes #13777. Change-Id: I739f9785eb040f2fecbeb96d5a9ceb8c1ca0f772 Reviewed-on: https://go-review.googlesource.com/18217 Reviewed-by: Russ Cox <rsc@golang.org> Run-TryBot: David Chase <drchase@google.com>
20 lines
291 B
Go
20 lines
291 B
Go
package burnin
|
|
|
|
type sendCmdFunc func(string)
|
|
|
|
func sendCommand(c string) {}
|
|
|
|
func NewSomething() {
|
|
// This works...
|
|
// var sendCmd sendCmdFunc
|
|
// sendCmd = sendCommand
|
|
|
|
// So does this...
|
|
//sendCmd := sendCmdFunc(sendCommand)
|
|
|
|
// This fails...
|
|
sendCmd := sendCommand
|
|
|
|
_ = sendCmd
|
|
}
|