Skip to content

Commit

Permalink
update kaomojis
Browse files Browse the repository at this point in the history
  • Loading branch information
cglotr committed Jun 7, 2022
1 parent 5421c64 commit 16e1eba
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions kifu.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ func Info(format string, a ...any) {
}

func Warn(format string, a ...any) {
fmt.Printf("(;⌣̀_⌣́) · %v\n", fmt.Sprintf(format, a...))
fmt.Printf("╮(︶︿︶)╭ · %v\n", fmt.Sprintf(format, a...))
}

func Error(format string, a ...any) {
fmt.Printf("(╬ Ò﹏Ó) · %v\n", fmt.Sprintf(format, a...))
fmt.Printf("(〃>_<;〃) · %v\n", fmt.Sprintf(format, a...))
}

func Fatal(format string, a ...any) {
Expand Down
12 changes: 10 additions & 2 deletions kifu_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,18 @@ func ExampleInfo() {

func ExampleWarn() {
kifu.Warn("%v", "Netflix")
// Output: (;⌣̀_⌣́) · Netflix
// Output: ╮(︶︿︶)╭ · Netflix
}

func ExampleError() {
kifu.Error("%v", "Facebook")
// Output: (╬ Ò﹏Ó) · Facebook
// Output: (〃>_<;〃) · Facebook
}

func ExampleFatal() {
defer func() {
recover()
}()
kifu.Fatal("%v", "Amazon")
// Output: (o・_・)ノ”(ノ_<、) · Amazon
}

0 comments on commit 16e1eba

Please sign in to comment.