go-lang-plugin-org / go-lang-idea-plugin

Google Go language IDE built using the IntelliJ Platform
https://plugins.jetbrains.com/plugin/5047
Other
4.56k stars 570 forks source link

Support // @deprecated in golang plugin. #1556

Open bronze1man opened 9 years ago

bronze1man commented 9 years ago

The phpstrom support @deprecated to said a function ,a class is deprecated.Everywhere use that function will have a delete line on it. I think it will be good to support it.

SchumacherFM commented 9 years ago

:+1:

ignatov commented 9 years ago

Hmm, can't find an official way to deprecate something in Go. Just some stuff from godoc.

bronze1man commented 9 years ago

I think // @deprecated and /* @deprecated */ should be good for me. java,php,csharp use something like this, The user come from another language may learn less stuff.

dlsniper commented 9 years ago

I'm not sure we should go down this path just yet. There's no consensus in the community for how. A quick search on github reveals there are only 19 code matches for "@deprecated", out of which 5 matches are in code from your repository. https://github.com/search?l=Go&q=%22%40deprecated%22+language%3AGo&ref=advsearch&type=Code&utf8=%E2%9C%93

ignatov commented 9 years ago

Just deprecated looks more popular.

bronze1man commented 9 years ago

I think deprecated is good. A workable standard like json is a good thing for the community. @ignatov how to do if i actually have a logic that is about deprectated?

ignatov commented 9 years ago

https://groups.google.com/forum/#!topic/golang-dev/ya5vE0G62Z4

deadok22 commented 8 years ago

It would be cool to have references in godoc comments.

dlsniper commented 8 years ago

@deadok22 the plugin already supports viewing godoc.org docs: https://www.jetbrains.com/help/idea/2016.1/viewing-external-documentation.html

elvizlai commented 8 years ago

Is this feature supported by go plugin now?

dlsniper commented 8 years ago

@elvizlai not yet