MCPcopy
hub / github.com/pterm/pterm / main

Function main

_examples/header/demo/main.go:5–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

3import "github.com/pterm/pterm"
4
5func main() {
6 // Print a default header.
7 // This uses the default settings of PTerm to print a header.
8 pterm.DefaultHeader.Println("This is the default header!")
9
10 // Print a spacer line for better readability.
11 pterm.Println()
12
13 // Print a full-width header.
14 // This uses the WithFullWidth() option of PTerm to print a header that spans the full width of the terminal.
15 pterm.DefaultHeader.WithFullWidth().Println("This is a full-width header.")
16}

Callers

nothing calls this directly

Calls 3

PrintlnFunction · 0.92
WithFullWidthMethod · 0.80
PrintlnMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…