Last active
June 8, 2016 08:13
-
-
Save zchee/b0f075d88bce874b630350fe35768062 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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)) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" 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