Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "gob"
- "os"
- )
- type tsa struct {
- e1 [3]int;
- }
- func main() {
- var sv tsa
- sv.e1[1] = 42
- fg, _ := os.Open("crash.gob", os.O_CREAT | os.O_TRUNC | os.O_RDWR, 0666)
- _ = gob.NewEncoder(fg).Encode(&sv)
- fg.Close()
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement