Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsNoColor ¶
func IsNoColor() bool
IsNoColor returns true when the NO_COLOR environment variable is set.
func Print ¶
Print formats data to the given writer in the specified format, optionally filtering fields. data: any JSON-serializable value (struct, map, slice). format: "json" | "table" | "csv". fields: comma-separated field names to include (empty string means all fields).
func PrintError ¶
PrintError writes a structured JSON error to the given writer.
For *meta.GraphError: includes message, code, subcode, trace_id, and — when Meta provided them — user_title and user_message (surfaced from error_user_title / error_user_msg). These are the developer-facing explanations Meta writes to describe what went wrong and how to fix it, so they are rendered as first-class fields on our error shape.
For other errors: includes message only.
The new user_title / user_message keys are additive and omitted when empty, so existing consumers that only read message/code/subcode/trace_id see no shape change.
Types ¶
This section is empty.