{"modulePath":"github.com/dracory/nodebase","version":"v0.15.2","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package comment\n\nPackage comment contains the comment node implementation.\n\n## Types\n\n```go\ntype CommentConfig struct {\n\t// Info is the free-form annotation text shown on the canvas\n\t// (Node-RED field name: info).\n\tInfo string `json:\"info\"`\n}\n```\nCommentConfig holds configuration for the comment node — the Node-RED \\`comment\\` equivalent. It carries only annotation text and has no runtime behaviour; the node deploys and round-trips but is never wired, so Execute simply passes the (never-delivered) payload.\n\n```go\ntype CommentNode struct {\n\t*nodebase.BaseNode\n\t// contains filtered or unexported fields\n}\n```\nCommentNode is a metadata-only flow annotation (Node-RED \\`comment\\`). It renders in the editor and keeps its text in the flow export, but it has no inputs/outputs and never executes.\n\n```go\nfunc NewCommentNode(node nodestore.NodeInterface, config *CommentConfig) *CommentNode\n```\nNewCommentNode creates a new comment node\n\n```go\nfunc (n *CommentNode) Execute(ctx context.Context, input nodestore.MessageInterface) (nodestore.MessageInterface, error)\n```\nExecute is a no-op pass-through: a comment node has no ports, so no message ever reaches it; the implementation exists to satisfy the NodeExecutor contract.\n\n```go\nfunc (n *CommentNode) Validate() error\n```\nValidate always passes — an annotation cannot be misconfigured.\n\n","path":"github.com/dracory/nodebase/comment","name":"comment","synopsis":"Package comment contains the comment node implementation.","isRedistributable":true}
