Skip to content

Instantly share code, notes, and snippets.

View yoshinoyaussie's full-sized avatar

yoshinoya ussie yoshinoyaussie

View GitHub Profile
@yoshinoyaussie
yoshinoyaussie / main.go
Created June 27, 2017 15:10
Go言語で、できるだけお手軽かつ安全にシリアライズ⇒デシリアライズしてみる
package main
import (
"fmt"
"./serialize"
)
// Struct1 はテスト用の構造体1です。
type Struct1 struct {
@yoshinoyaussie
yoshinoyaussie / main.go
Created June 27, 2017 13:24
Go言語の構造体の値渡しとポインタ渡しの動作を確認してみる
package main
import (
"fmt"
"reflect"
)
// ST1 は文字列とmap[string]stringを持つ構造体です。
type ST1 struct {
f1 string