summaryrefslogtreecommitdiffhomepage
path: root/internal/deepprint/deepprint.go
AgeCommit message (Collapse)AuthorFilesLines
2020-06-29internal/deepprint: add missing copyright headersBrad Fitzpatrick1-0/+4
2020-06-28wgengine, internal/deepprint: replace UAPI usage as hash func; add deepprintBrad Fitzpatrick1-0/+89
The new deepprint package just walks a Go data structure and writes to an io.Writer. It's not pretty like go-spew, etc. We then use it to replace the use of UAPI (which we have a TODO to remove) to generate signatures of data structures to detect whether anything changed (without retaining the old copy). This was necessary because the UAPI conversion ends up trying to do DNS lookups which an upcoming change depends on not happening.