Skip to content

Commit

Permalink
Add String method to Message
Browse files Browse the repository at this point in the history
  • Loading branch information
morikuni committed Apr 18, 2024
1 parent 3c9e59a commit abe9ab3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions field.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,3 +65,7 @@ func (m Message) SetErrorField(setter FieldSetter) {
func Messagef(format string, a ...any) Message {
return Message(fmt.Sprintf(format, a...))
}

func (m Message) String() string {
return string(m)
}
1 change: 0 additions & 1 deletion stack.go

This file was deleted.

0 comments on commit abe9ab3

Please sign in to comment.