cosmos-sdk/depinject/internal/graphviz/node.go
Alex | Interchain Labs b7a20b81f6
chore: lint v2 (#24118)
2025-03-25 15:57:24 +00:00

18 lines
265 B
Go

package graphviz
import (
"fmt"
"io"
)
// Node represents a graphviz node.
type Node struct {
*Attributes
name string
}
func (n Node) render(w io.Writer, indent string) error {
_, err := fmt.Fprintf(w, "%s%q%s;\n", indent, n.name, n.String())
return err
}