简体   繁体   中英

Go: how to get autocomplete for any go file

Seems go has autocomplete data gettable via some go program. any example how to? eg i have file test.go and line:column 10:12. this pos (10:12) is after some func name, eg "getn" - can I get list of all funcs which begin with "getn".

ie, get autocomplete data.

Tks to comment. Answer is gocode https://github.com/nsf/gocode (it has document inside zip).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM