Documentation
¶
Overview ¶
Package shared provides common utilities for go-output examples.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleError ¶
func HandleError(err error)
HandleError prints the error to stderr and exits with code 1.
func NewServiceD2Diagram ¶
NewServiceD2Diagram creates a D2 diagram with a service class pre-configured.
func RenderAndPrint ¶ added in v0.23.2
RenderAndPrint runs r.Render() and prints the result, routing any error through HandleError. Centralises the "Render() + check error + println" sequence shared by every go-output example entrypoint.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.