OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [trunk/] [gnu-dev/] [or1k-gcc/] [libgo/] [go/] [encoding/] [gob/] [dump.go] - Blame information for rev 750

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 747 jeremybenn
// Copyright 2009 The Go Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style
3
// license that can be found in the LICENSE file.
4
 
5
package main
6
 
7
// Need to compile package gob with debug.go to build this program.
8
 
9
import (
10
        "encoding/gob"
11
        "fmt"
12
        "os"
13
)
14
 
15
func main() {
16
        var err error
17
        file := os.Stdin
18
        if len(os.Args) > 1 {
19
                file, err = os.Open(os.Args[1])
20
                if err != nil {
21
                        fmt.Fprintf(os.Stderr, "dump: %s\n", err)
22
                        os.Exit(1)
23
                }
24
        }
25
        gob.Debug(file)
26
}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.