cosmos-sdk/depinject/internal/graphviz/node.go
Facundo Medica c17f38d224
refactor!: rename container to cosmossdk.io/depinject (#12020)
* chore: rename container to cosmossdk.io/container

* fix imports

* add replace for container

* remove replace

* add replace

* fix replace

* fix replace

* fix replace

* fix replace

* fix replace

* try to fix replace

* rename to depinject

* rename to depinject

* do not use vanity URL for now

* try fix tests

* try fix tests

* try fix tests

* build -> inject

* build -> inject

* go mod tidy

* fix dep vulnerability

* fix dep vulnerability

* fix Dockerfile for liveness-test

* fix codeql error

* try to solve dependency review

* try to solve dependency review

* go mod tidy

* try to fix tests

* another try
2022-05-27 19:34:48 +02:00

18 lines
276 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.Attributes.String())
return err
}