Standard library / encoding/gob

encoding/gob.CommonType

Historical exported descriptor structure retained for Gob compatibility. It is not intended as an application serialization API; this example only inspects the exported type. Expected stdout: 'gob.CommonType\n'.

Formal Syntax & Structure

go syntaxgo
type CommonType struct {  Name string  Id   typeId}

Working Example

Example Snippetgo
package main
import (  "encoding/gob"  "fmt")
func must(e error) {  if e != nil {    panic(e)  }}
func main() { fmt.Printf("%T\n", gob.CommonType{}) }
Go Reference