mirror of https://github.com/rwxrob/z
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
429 B
Go
22 lines
429 B
Go
2 years ago
|
package foo
|
||
|
|
||
|
// Go treats all files as if they are, more or less, in the same large
|
||
|
// file. Create separate files to help you and others find the code you
|
||
|
// need quickly.
|
||
|
|
||
|
import (
|
||
|
"log"
|
||
|
|
||
|
// if typing bonzai becomes tedious use capital Z as a convention
|
||
|
|
||
|
Z "github.com/rwxrob/bonzai"
|
||
|
)
|
||
|
|
||
|
var own = &Z.Cmd{
|
||
|
Name: `own`,
|
||
|
Call: func(caller *Z.Cmd, none ...string) error {
|
||
|
log.Print("I'm in my own file.")
|
||
|
return nil
|
||
|
},
|
||
|
}
|