~emersion/drmdb

ad07722f24425c2d7c2fd55c6c9904af8acbe412 — Simon Ser 2 years ago a9bed29
go fmt
3 files changed, 5 insertions(+), 5 deletions(-)

M drmtree/drmtree.go
M server.go
M treefmt/memory.go
M drmtree/drmtree.go => drmtree/drmtree.go +1 -1
@@ 6,8 6,8 @@ import (
	"fmt"
	"strings"

	"git.sr.ht/~emersion/go-drm"
	"git.sr.ht/~emersion/drmdb/treefmt"
	"git.sr.ht/~emersion/go-drm"
)

type DriverVersion struct {

M server.go => server.go +2 -2
@@ 264,8 264,8 @@ func New() *echo.Echo {
			tf := treefmt.NewMemoryFormatter()
			n.FormatTree(tf)

			return c.Render(http.StatusOK, "device.html", struct{
				Key string
			return c.Render(http.StatusOK, "device.html", struct {
				Key  string
				Node *drmtree.Node
				Tree []treefmt.Memory
			}{key, n, tf.Tree()})

M treefmt/memory.go => treefmt/memory.go +2 -2
@@ 5,7 5,7 @@ import (
)

type Memory struct {
	Text string
	Text     string
	Children []Memory
}



@@ 22,7 22,7 @@ func (mf *MemoryFormatter) NewChild() Formatter {
	if len(mf.m.Children) == 0 {
		panic("treefmt: NewChild called before Printf")
	}
	m := &mf.m.Children[len(mf.m.Children) - 1]
	m := &mf.m.Children[len(mf.m.Children)-1]
	return &MemoryFormatter{m: m}
}