Basically, autocomplete options should be relevant for where the cursor is. see gocode maybe? Having a proper AST would be nice, also multipurpose