You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
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
|
|
}
|