Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTabWriter ¶
NewTabWriter initializes and returns a new tabwriter.Writer. ZNS uses this writer to format DNS records into a clear, human-readable table. See https://pkg.go.dev/text/tabwriter#Writer.Init for details.
Types ¶
type HumanRenderer ¶
type HumanRenderer struct {
// contains filtered or unexported fields
}
HumanRenderer for writing human-readable output.
func NewHumanRenderer ¶
func NewHumanRenderer(view *View) *HumanRenderer
NewHumanRenderer creates a HumanRenderer with a "human" view bound to an output stream.
type JSONRenderer ¶
type JSONRenderer struct {
// contains filtered or unexported fields
}
JSONRenderer for rendering JSON output.
func NewJSONRenderer ¶
func NewJSONRenderer(view *JSONView) *JSONRenderer
NewJSONRenderer creates a JSONRenderer with a JSONView bound to an output stream.
type JSONView ¶
type JSONView struct { View // contains filtered or unexported fields }
func NewJSONView ¶
Click to show internal directories.
Click to hide internal directories.