emacs つかってて、たまに gocode が動かないのかなって思う時がある
# ps auxwww | grep gocode
ps してみて、gocode がいなかったら起動する、いたら
# gocode close
mac のサービスに登録してあったら、しばらく待てば起動する
これでもだめなら
package x
import "fmt"
var a = fmt.
こんなファイル作って ac.go って名前にして
$cat ac.go | gocode autocomplete 36
Found 25 candidates:
func Errorf(format string, a ...interface{}) error
func Fprint(w io.Writer, a ...interface{}) (n int, err error)
func Fprintf(w io.Writer, format string, a ...interface{}) (n int, err error)
func Fprintln(w io.Writer, a ...interface{}) (n int, err error)
func Fscan(r io.Reader, a ...interface{}) (n int, err error)
func Fscanf(r io.Reader, format string, a ...interface{}) (n int, err error)
func Fscanln(r io.Reader, a ...interface{}) (n int, err error)
func Print(a ...interface{}) (n int, err error)
func Printf(format string, a ...interface{}) (n int, err error)
func Println(a ...interface{}) (n int, err error)
func Scan(a ...interface{}) (n int, err error)
func Scanf(format string, a ...interface{}) (n int, err error)
func Scanln(a ...interface{}) (n int, err error)
func Sprint(a ...interface{}) string
func Sprintf(format string, a ...interface{}) string
func Sprintln(a ...interface{}) string
func Sscan(str string, a ...interface{}) (n int, err error)
func Sscanf(str string, format string, a ...interface{}) (n int, err error)
func Sscanln(str string, a ...interface{}) (n int, err error)
type Formatter interface
type GoStringer interface
type ScanState interface
type Scanner interface
type State interface
とかやると、ああ、動いてるなってわかって、諦められる。