golang - note
        
        
        
    
    
        
  
  
   Posted on September 3, 2019
  
     (Last modified on January 29, 2020)
  
  
  
  
    
       |  Tedshd
    
  
  
    
    
        
        golang - note log
時間格式的雷
2006-01-02 15:04:05
https://golang.org/pkg/time/#Time.Format
Golang 时间格式化的奇怪设定 —— 为什么你一直出错
Array
Array
確認 type
import "reflect"
x := 7
reflect.TypeOf(x).Kind();
Convert interface to string
var x interface{} = "abc"
str := fmt.Sprintf("%v", x)
Print statuct
fmt.Printf("%+v\n", struct)
 
    
          
            
    
        Golang - gvm Golang version manger
        
        
        
    
    
        
  
  
   Posted on June 14, 2019
  
     (Last modified on January 29, 2020)
  
  
  
  
    
       |  Tedshd
    
  
  
    
    
        
        gvm Intro gvm Golang version manger Usage Install bash < <(curl -s -S -L https://raw.githubusercontent.com/moovweb/gvm/master/binscripts/gvm-installer) Add to .bashrc or .zshrc # added gvm command to shell source "$HOME/.gvm/scripts/gvm" # directory path for GO export GOPATH=$HOME/gopath export GOROOT=$HOME/go export PATH=$PATH:$GOROOT/bin Install go gvm install go1.4 -B gvm use go1.4 export GOROOT_BOOTSTRAP=$GOROOT gvm install go1.9 Finall add command to .bashrc or .zshrc gvm use go1.9 Refer - Go - 在 OSX 安
        
[Read More]