Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Implementation-wise, I see this being two parts.
First one is some general Go code to determine when a symbol is deprecated. It would have to match the rules that are set out for deprecating a symbol. Reference for that is here:
That should be relatively easy to implement, but does anyone know if this already exists anywhere?
Second part is making use of that to change presentation of such symbols on godoc.org.
Standard library and official packages use the "Deprecated:" notation, see "ErrWriteAfterFlush" at https://golang.org/pkg/net/http/ for an example. grep the Go tree for more examples.
As an example of a standalone deprecated symbol, see https://golang.org/pkg/net/http/#Transport.CancelRequest.