22 lines
338 B
Go
22 lines
338 B
Go
package helpers
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
|
|
"github.com/fatih/color"
|
|
"github.com/gookit/goutil/dump"
|
|
"golang.org/x/term"
|
|
)
|
|
|
|
func Lines(v ...any) {
|
|
w, _, _ := term.GetSize(0)
|
|
line := strings.Repeat(">", w-10)
|
|
color.HiYellow(line)
|
|
fmt.Println("")
|
|
for _, a := range v {
|
|
dump.Println(a)
|
|
}
|
|
fmt.Println("")
|
|
color.HiYellow(line)
|
|
}
|