github.com/shogo82148/std@v1.22.1-0.20240327122250-4e474527810c/encoding/gob/encgen.go (about)

     1  // 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  //go:build ignore
     6  
     7  // encgen writes the helper functions for encoding. Intended to be
     8  // used with go generate; see the invocation in encode.go.
     9  
    10  // TODO: We could do more by being unsafe. Add a -unsafe flag?
    11  
    12  package main
    13  
    14  type Type struct {
    15  	lower   string
    16  	upper   string
    17  	zero    string
    18  	encoder string
    19  }