Skip to content

Instantly share code, notes, and snippets.

@bryanl
Last active Aug 29, 2015
Embed
What would you like to do?

docs

To start godoc at log in time (so it always there on port 6060 when you need it):

  1. copy smarticus.godoc.plist to in ~/Library/LaunchAgents
  2. launchctl load ~/Library/LaunchAgents/smarticus.godoc.plist
  3. visit http://localhost:6060
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>EnvironmentVariables</key>
<dict>
<key>GOPATH</key>
<string>/Users/bryan/Development/go</string>
<key>VAR</key>
<string>VAL</string>
</dict>
<key>KeepAlive</key>
<false/>
<key>Label</key>
<string>smarticus.godoc</string>
<key>ProgramArguments</key>
<array>
<string>/usr/local/go/bin/godoc</string>
<string>-http=:6060</string>
<string>-analysis=pointer</string>
</array>
<key>RunAtLoad</key>
<true/>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment