sdk/golang/Standard Library/GoTextTabwriter
Standard Library

GoTextTabwriter

Go stdlib package — text/tabwriter. Auto-indexed from CDN. Method-level security roles have not been annotated; rule writers should inspect the source before use.

Other Methods

.NewWriter()Neutral
#
Signature
NewWriter(output io.Writer, minwidth int, tabwidth int, padding int, padchar byte, flags uint) *Writer

NewWriter allocates and initializes a new tabwriter.Writer.

.Writer.Flush()Neutral
#
Signature
Writer.Flush() error

Flush should be called after the last call to Write to ensure

.Writer.Init()Neutral
#
Signature
Writer.Init(output io.Writer, minwidth int, tabwidth int, padding int, padchar byte, flags uint) *Writer

A Writer must be initialized with a call to Init. The first parameter (output)

.Writer.Write()Neutral
#
Signature
Writer.Write(buf []byte) (int, error)

Write writes buf to the writer b.

.Writer()Neutral
#
Signature
type Writer ...

A Writer is a filter that inserts padding around tab-delimited

Fully-Qualified Names

FQNField
text/tabwriterfqns[0]

Wrong FQN → 0 findings. Verify with: change fqns to garbage → must produce 0 results.

Import

go.mod
// standard library — no go.mod entry required
rule.py
from codepathfinder.go_rule import ...  # text/tabwriter