Skip to content

Commit

Permalink
display: add Infof
Browse files Browse the repository at this point in the history
  • Loading branch information
joshi4 committed Feb 23, 2024
1 parent b21d487 commit 7d18f01
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions display/info.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,7 @@ var infoStyle = lipgloss.NewStyle().
func Info(text string) {
fmt.Println(infoStyle.Render(text))
}

func Infof(format string, a ...interface{}) {
Info(fmt.Sprintf(format, a...))
}

0 comments on commit 7d18f01

Please sign in to comment.