const yellowColor … const resetColor … type WarningPrinter … type WarningPrinterOptions … // NewWarningPrinter returns an implementation of warningPrinter that outputs warnings to the specified writer. func NewWarningPrinter(out io.Writer, opts WarningPrinterOptions) *WarningPrinter { … } // Print prints warnings to the configured writer. func (w *WarningPrinter) Print(message string) { … }