decoder

command
v0.0.0-...-5aa3042 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 8, 2025 License: MIT Imports: 15 Imported by: 0

README

Decoder

Each day a new daily waffle is served up. This waffle is available in its raw form as base64 encoded JSON daily1.txt. There is also a second waffle at daily2.txt.

Each Sunday a new deluxe waffle is served up. This waffle is available in its raw form as base64 encoded JSON deluxe1.txt. There is also a second waffle at deluxe2.txt.

It is not clear what the difference is between the 1 and 2 versions of the waffles. Maybe country-specific variants?

The work process when a new waffle comes out is to add it to the regression test suite. Normally this is done by manual transcription of what is seen on the waffle web page. Instead of this manual work, download the JSON, decode it, and generate a serialized representation that can be pasted into the regression suite.

Using It

go run decoder.go

Paste the output into ../regress/regress.go.

Alternately, generate the signatures from the archive. It is a similar format to the daily file, but there is one extra layer of encoding; botli.

Download the latest archive file from the link (or whatever name it has). Rename it to archive-daily.json or archive-deluxe.json.

go run decoder.go -file archive-daily.json

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL