To start godoc at log in time (so it always there on port 6060 when you need it):
- copy smarticus.godoc.plist to in ~/Library/LaunchAgents
launchctl load ~/Library/LaunchAgents/smarticus.godoc.plist- visit http://localhost:6060
To start godoc at log in time (so it always there on port 6060 when you need it):
launchctl load ~/Library/LaunchAgents/smarticus.godoc.plist| <?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> |