Browse Source

Generated sequences

master
Michael Christenson II 2 years ago
parent
commit
f54b588efc
  1. 9
      internal/cmd/lipsenq/generate/layer_sequences.go
  2. 2
      internal/codec/lipmaa_gen.go
  3. 7
      internal/codec/lipmaa_sequences.gen.go

9
internal/cmd/lipsenq/generate/layer_sequences.go

@ -6,6 +6,7 @@ import (
"io/ioutil"
"strconv"
"strings"
"time"
"github.com/pkg/errors"
@ -24,9 +25,12 @@ const (
)
var (
goGenTmp = `
// Auto generated by lipsenq
goGenTmp = `// Auto generated
// By: tildegit.org/PigeonProtocolConsortium/pigeongo/internal/cmd/lipsenq
// On: %s
package %s
var GeneratedLipmaaLayerSequences = []uint{%v}
`
seqConf = struct {
@ -59,6 +63,7 @@ var GeneratedLipmaaLayerSequences = []uint{%v}
}
goGenTmp := fmt.Sprintf(
goGenTmp,
time.Now().UTC(),
seqConf.GoGenPackageName, strings.Join(seqStr, ","),
)
if seqConf.FilePath == "" {

2
internal/codec/lipmaa_gen.go

@ -2,4 +2,4 @@
package codec
//go:generate go run tildegit.org/PigeonProtocolConsortium/pigeongo/internal/cmd/lipsenq generate sequences -d 41 -f go-generate -g codec -o ./internal/codec/lipmaa_sequences.gen.go
//go:generate go run tildegit.org/PigeonProtocolConsortium/pigeongo/internal/cmd/lipsenq generate sequences -d 41 -f go-generate -g codec > ./internal/codec/lipmaa_sequences.gen.go

7
internal/codec/lipmaa_sequences.gen.go

@ -0,0 +1,7 @@
// Auto generated
// By: tildegit.org/PigeonProtocolConsortium/pigeongo/internal/cmd/lipsenq
// On: 2020-04-19 04:30:19.6331595 +0000 UTC
package codec
var GeneratedLipmaaLayerSequences = []uint{0,1,4,13,40,121,364,1093,3280,9841,29524,88573,265720,797161,2391484,7174453,21523360,64570081,193710244,581130733,1743392200,5230176601,15690529804,47071589413,141214768240,423644304721,1270932914164,3812798742493,11438396227480,34315188682441,102945566047324,308836698141973,926510094425920,2779530283277761,8338590849833284,25015772549499853,75047317648499560,225141952945498681,675425858836496044,2026277576509488133,6078832729528464400}
Loading…
Cancel
Save