Plugin https://github.com/fatih/vim-go
Tutorial https://github.com/fatih/vim-go-tutorial
Vimrc https://github.com/fatih/dotfiles/blob/master/vimrc
- File
:GoRun % - Package
:GoRun - Debug
:GoDebugStart
There are three easy to make mistakes in go. I present them here in the way they are often found in the wild, not in the way that is easiest to understand.
All three of these mistakes have been made in Kubernetes code, getting past code review at least once each that I know of.
What do these lines do? Make predictions and then scroll down.
func print(pi *int) { fmt.Println(*pi) }| # Misc | |
| DATABASE_PASSWORD=123456 | |
| ADMIN_PASSWORD=123456 | |
| SERVICE_PASSWORD=123456 | |
| SERVICE_TOKEN=123456 | |
| RABBIT_PASSWORD=123456 | |
| # Reclone each time | |
| #RECLONE=True |
| #!/usr/bin/env python | |
| # Transfer file or folder to remote server use rsync protocal | |
| # If you get a prompt says "Is a directory" | |
| # Please double check your server list file, and make sure | |
| # the directories existing on corresponding server | |
| import os | |
| import sys |
| { | |
| "color_scheme": "Packages/Tomorrow Color Schemes/Tomorrow-Night-Eighties.tmTheme", | |
| "ignored_packages": | |
| [ | |
| "Vintage" | |
| ], | |
| "theme": "Soda Dark 3.sublime-theme", | |
| "translate_tabs_to_spaces": true, | |
| "word_wrap": true, | |
| "highlight_line": true, |
| #!/usr/bin/env bash | |
| # Usage: {script} TARGET BUILD | |
| # | |
| # TARGET Default target is "/opt". | |
| # BUILD If not defined tries to get the build into the Sublime Text 3 website. | |
| # | |
| set -e | |
| declare URL |