Skip to content

Instantly share code, notes, and snippets.

@zchee
Last active June 8, 2016 08:13
Show Gist options
  • Save zchee/b0f075d88bce874b630350fe35768062 to your computer and use it in GitHub Desktop.
Save zchee/b0f075d88bce874b630350fe35768062 to your computer and use it in GitHub Desktop.
package main
import (
"fmt"
"net"
"os"
"strconv"
"syscall"
)
var str string
func main() {
fmt.Println(os.Args[0])
fmt.Println(net.InterfaceAddrs())
fmt.Println(strconv.FormatInt(int64(syscall.Getuid()), 10))
}
" Tiny init.vim for deoplete-go
if !isdirectory('$XDG_CACHE_HOME/nvim/dein')
" dein
set runtimepath+=$HOME/src/github.com/Shougo/deoplete.nvim
set runtimepath+=$HOME/src/github.com/zchee/deoplete-go
elseif !isdirectory('$XDG_CONFIG_HOME/nvim/bundle')
" NeoBundle
set runtimepath+=$XDG_CONFIG_HOME/nvim/bundle/deoplete.nvim
set runtimepath+=$XDG_CONFIG_HOME/nvim/bundle/deoplete-go
elseif !isdirectory('$XDG_CONFIG_HOME/nvim/plugged')
" vim-plug
set runtimepath+=$XDG_CONFIG_HOME/nvim/plugged/deoplete.nvim
set runtimepath+=$XDG_CONFIG_HOME/nvim/plugged/deoplete-go
endif
set completeopt+=noinsert,noselect
set completeopt-=preview
hi Pmenu gui=NONE guifg=#c5c8c6 guibg=#373b41
hi PmenuSel gui=reverse guifg=#c5c8c6 guibg=#373b41
let g:deoplete#enable_at_startup = 1
let g:deoplete#auto_completion_start_length = 1
call deoplete#custom#set('_', 'converters', [
\ 'converter_auto_paren',
\ 'converter_remove_overlap',
\ ])
call deoplete#custom#set('_', 'mark', '*')
filetype plugin indent on
" Tiny init.vim for deoplete-go
if !isdirectory('$XDG_CACHE_HOME/nvim/dein')
" dein
set runtimepath+=$HOME/src/github.com/Shougo/deoplete.nvim
set runtimepath+=$HOME/src/github.com/zchee/deoplete-go
elseif !isdirectory('$XDG_CONFIG_HOME/nvim/bundle')
" NeoBundle
set runtimepath+=$XDG_CONFIG_HOME/nvim/bundle/deoplete.nvim
set runtimepath+=$XDG_CONFIG_HOME/nvim/bundle/deoplete-go
elseif !isdirectory('$XDG_CONFIG_HOME/nvim/plugged')
" vim-plug
set runtimepath+=$XDG_CONFIG_HOME/nvim/plugged/deoplete.nvim
set runtimepath+=$XDG_CONFIG_HOME/nvim/plugged/deoplete-go
endif
set completeopt+=noinsert,noselect
set completeopt-=preview
hi Pmenu gui=NONE guifg=#c5c8c6 guibg=#373b41
hi PmenuSel gui=reverse guifg=#c5c8c6 guibg=#373b41
let g:deoplete#enable_at_startup = 1
let g:deoplete#auto_completion_start_length = 1
call deoplete#custom#set('_', 'converters', [
\ 'converter_auto_paren',
\ 'converter_remove_overlap',
\ ])
call deoplete#custom#set('go', 'mark', '*')
filetype plugin indent on
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment