From 25b17be8194ae7b27989adad889e25fb9435663e Mon Sep 17 00:00:00 2001 From: k1LoW Date: Fri, 25 Oct 2024 21:19:04 +0900 Subject: [PATCH] Use alias --- output/gviz/gviz.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/output/gviz/gviz.go b/output/gviz/gviz.go index 5df8bcaf..044ee0bb 100644 --- a/output/gviz/gviz.go +++ b/output/gviz/gviz.go @@ -11,7 +11,6 @@ import ( "github.com/beta/freetype/truetype" "github.com/goccy/go-graphviz" - "github.com/goccy/go-graphviz/gvc" "github.com/k1LoW/errors" "github.com/k1LoW/ffff" "github.com/k1LoW/tbls/config" @@ -75,7 +74,7 @@ func (g *Gviz) render(wr io.Writer, b []byte) (e error) { return errors.WithStack(err) } // FIXME: more better way - graphviz.SetFontLoader(func(ctx context.Context, job *gvc.Job, font *gvc.TextFont) (font.Face, error) { + graphviz.SetFontLoader(func(ctx context.Context, job *graphviz.Job, font *graphviz.TextFont) (font.Face, error) { return faceFunc(font.Size()) }) }