Skip to content

Instantly share code, notes, and snippets.

@bryanl
Last active August 29, 2015 14:10
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bryanl/465a188d8495a2457fa8 to your computer and use it in GitHub Desktop.
Save bryanl/465a188d8495a2457fa8 to your computer and use it in GitHub Desktop.

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