<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Kory Scharn on Medium]]></title>
        <description><![CDATA[Stories by Kory Scharn on Medium]]></description>
        <link>https://medium.com/@kas240sx89?source=rss-66b58c60e182------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Ur-HjP1RRRsKiwhi.</url>
            <title>Stories by Kory Scharn on Medium</title>
            <link>https://medium.com/@kas240sx89?source=rss-66b58c60e182------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 11:22:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kas240sx89/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Golang go doc and godoc part 1:The tools]]></title>
            <link>https://medium.com/@kas240sx89/golang-go-doc-and-godoc-part-1-the-tools-4368e0d60aea?source=rss-66b58c60e182------2</link>
            <guid isPermaLink="false">https://medium.com/p/4368e0d60aea</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[godoc]]></category>
            <category><![CDATA[golang-tools]]></category>
            <dc:creator><![CDATA[Kory Scharn]]></dc:creator>
            <pubDate>Fri, 29 Jul 2016 19:04:50 GMT</pubDate>
            <atom:updated>2016-07-29T19:04:50.295Z</atom:updated>
            <content:encoded><![CDATA[<p>Using godoc can seem tricky but is a useful tool when working with Golang. The great thing is it works for all packages with documentation that are on you system. This means that if you can’t connect to the Internet you can still find out the info you need on the packages you are using for your project.</p><p><strong>go doc</strong></p><p>The first set of cases with go doc follow the pattern:</p><p><em>go doc [package] [function]</em></p><p><em>go doc</em>:</p><p>This runs from the current package and returns a list of all types that are part of the package</p><p><em>go doc [type]:</em></p><p>Returns the list of functions for type within a given package</p><p><em>go doc [function]:</em></p><p>Returns the documentation of the function requested from the package</p><p><em>go doc [package]:</em></p><p>This allows for a package to be view from a different directory. This is also kinda buggy and may need the entire directory path to get the package information.</p><p><em>go doc [Package].[Type/function].[function] :</em></p><p>This will return the type list or function requested by the path.</p><p>Thats a lot of work and a bit of a pain in the arse to do for every function of a package to see The info we want.</p><p><strong><em>godoc</em></strong></p><p>The easier way to view the information we want. This returns all the documentation of a package.</p><p>the godoc pattern:</p><p><em>godoc [package/path/function]</em></p><p><em>godoc:</em></p><p>returns the help menu (boo, wish it got the doc for the current package but doesn’t)</p><p><em>godoc: [package]:</em></p><p>returns all the types and function documentation of the Package. Seems to only work for packages that are core to Golang.</p><p><em>godoc: [path]:</em></p><p>This one will return the documentation for the specified package</p><p><em>godoc -http=:6060 : ***(by far the most useful)</em></p><p>creates a http server at localhost:6060. This looks just like the golang.org page but the packages tab contains all the packages accessable by the $GOROOT and $GOPATH. along with all the documentation and src code(if available). For some reason it seems to only work with port :6060.</p><p>This conclude Part 1. Keep an eye out for Part 2: Tips and Tricks-Writing godoc documentation</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4368e0d60aea" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>