Skip to content

Commit

Permalink
Add header to pyi files
Browse files Browse the repository at this point in the history
  • Loading branch information
Will Huxtable committed Mar 6, 2018
1 parent 99b8241 commit e7468fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gen/gen.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"fmt"
"io"
"reflect"
"time"

"github.com/arachnys/protostub"
)
Expand All @@ -23,6 +24,10 @@ type generator struct {
func Gen(w io.Writer, p *protostub.ProtoData) error {
gen := &generator{0, bufio.NewWriter(w)}

gen.bw.WriteString(fmt.Sprintf("# Generated by protostub on %s\n", time.Now().Format("Mon Jan 2 15:04:05 -0700 MST 2006")))
gen.bw.WriteString("# https://github.com/arachnys/protostub\n")
gen.bw.WriteString("# Do not modify\n")

for _, i := range p.Types {
if err := gen.gen(i); err != nil {
return err
Expand Down

0 comments on commit e7468fd

Please sign in to comment.