golang

golang

Go RESTful API

Gorilla/mux mux is powerful RESTful API support (implement router) for Golang. Preparation To install this, us...
golang

Go MySQL

Go + MySQL To use MySQL from Go, we will use 2 libraries. database/sql and github.com/go-sql-driver/mysql sql ...
golang

Go Cassandra

gocql gocql is one of cassandra driver for go. Get gocql Use go get go get github.com/gocql/gocql Examp...
golang

Go file read

Example Read line one by one package main import ( "bufio" "fmt" "os" ) func main() { file, err := os.OpenF...
golang

Go goroutine and channel

go routine Go routine is golang lightweight parallel process function. Run function asynchronously. Example ...
golang

Go struct + method

Go struct can add method in Go struct is not class. But it becomes like class. Go struct can add method This is...
golang

Go struct

Go struct Go does not have class, struct plays similar role as class in other languages Go struct definition t...
golang

Go Server Response json

encoding/json This package support byte(string) <-> struct conversion. Next example shows how to create applic...
golang

Go Simple Server

net/http Support Http Server Simple Example package main import ( "fmt" "net/http" ) func request1(w http....
golang

Go String Json

Goal Convert string -> json (go struct, data) Convert json -> string encoding/json To handle json and...
スポンサーリンク