Skip to content

Latest commit

 

History

History
20 lines (15 loc) · 215 Bytes

README.md

File metadata and controls

20 lines (15 loc) · 215 Bytes

GoTamer gob v2

Example

type Foo struct {
	A int
	B string
}

p := &Foo{111,"A string"}

byteslice, err := gob.Marshal(p)
...

foo := new(Foo)
err := gob.Unmarshal(byteslice, foo)
...