MCPcopy Create free account
hub / github.com/DoNewsCode/core / WithName

Function WithName

dag/vertex_options.go:10–14  ·  view source on GitHub ↗

WithName sets the name of the vertex. The name is useful for debugging.

(name string)

Source from the content-addressed store, hash-verified

8
9// WithName sets the name of the vertex. The name is useful for debugging.
10func WithName(name string) VertexOption {
11 return func(vertex *vertex) {
12 vertex.name = name
13 }
14}
15
16// WithLogger sets the logger for the vertex. The logger can be set to arbitrary
17// log level before passing in.

Callers 1

TestDag_AddVertexFunction · 0.70

Calls

no outgoing calls

Tested by 1

TestDag_AddVertexFunction · 0.56