We will shift over the features from godoc to "go doc" before removing 
support, so that the output remains consistent. I think there is already an 
open issue for exactly what you have shown above. So no worries, things 
will be the same.

On Friday, 31 August 2018 02:16:54 UTC+5:30, John Shahid wrote:
>
>
> Agniva De Sarker <agniva.qu...@gmail.com <javascript:>> writes: 
>
> > Also - note that godoc cli mode is going to go away. So "godoc -links=0 
> > -html domain.com/group/project/v3/lib/foo" is not going to work after 
> 1.12. 
> > You should be using the http server. If you want command line help, use 
> "go 
> > doc". 
>
> Is there a way to get the same output as godoc ? `go doc' lists the 
> exported symbols but not their documentation.  For example the following 
> is what I get from `godoc' 
>
>     func ResolveIPAddr(network, address string) (*IPAddr, error) 
>         ResolveIPAddr returns an address of IP end point. 
>
>         The network must be an IP network name. 
>
>         If the host in the address parameter is not a literal IP address, 
>         ResolveIPAddr resolves the address to an address of IP end point. 
>         Otherwise, it parses the address as a literal IP address. The 
> address 
>         parameter can use a host name, but this is not recommended, 
> because it 
>         will return at most one of the host name's IP addresses. 
>
>         See func Dial for a description of the network and address 
> parameters. 
>
>
> as opposed to the following less useful `go doc' output: 
>
>     func Pipe() (Conn, Conn) 
>     func ResolveIPAddr(network, address string) (*IPAddr, error) 
>     func ResolveTCPAddr(network, address string) (*TCPAddr, error) 
>
> I have been relying on this behavior for a long time to open up the 
> documentation of a package and just search for the method I'm using. 
> Instead of having to open the docs for each method/symbol separately. 
>
> Thanks, 
>
> -js 
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to