Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitWriter ¶
InitWriter initializes the global data writer with an I/O context. This should be called once at application startup (in root.go).
func Write ¶
Write writes content to the data channel (stdout). Flow: data.Write() → io.Write(DataStream) → masking → stdout.
func WriteJSON ¶
func WriteJSON(v interface{}) error
WriteJSON marshals v to JSON and writes to the data channel (stdout). Flow: data.WriteJSON() → io.Write(DataStream) → masking → stdout.
func WriteYAML ¶
func WriteYAML(v interface{}) error
WriteYAML marshals v to YAML and writes to the data channel (stdout). Flow: data.WriteYAML() → io.Write(DataStream) → masking → stdout.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.