()
| 3 | import "github.com/pterm/pterm" |
| 4 | |
| 5 | func 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 | } |
nothing calls this directly
no test coverage detected
searching dependent graphs…