[Go]Go lang安裝

安裝
Ubuntu

sudo apt-get install python-software-properties  # 12.04
# 新增 repository
sudo add-apt-repository ppa:duh/golang
sudo apt-get update
# 安裝 golang
sudo apt-get install golang

FreeBSD

cd /usr/ports/lang/go
make install clean

Mac Homebrew

brew install go

操作

#查看版號
go version

使用官方的sample進行測試
hello.go

package main

import "fmt"

func main() {
    fmt.Printf("hello, world\n")
}

執行

go run hello.go

[MySQL]FIND_IN_SET

[ZF]View Helper – Partial