// NewMessage creates a new message with the given fields.
NewMessage creates a new message with the given fields.
// NewMessage creates a new message with the given fields .
func NewMessage(statusCode uint64, description string, fields ...Field) *Message {
	fieldmap := make(map[string]string)
	for _, field := range fields {
		fieldmap[field.Key] = field.Value
	}
	return &Message{
		statusCode,
		description,
		fieldmap,
	}
}
func NewMessage ( statusCode uint64 , description string , fields ... Field ) * Message { fieldmap := make ( map [ string ] string ) for _ , field := range fields { fieldmap [ field . Key ] = field . Value } return & Message { statusCode , description , fieldmap , } }
NewMessage creates a new message with the given fields.
NewMessage creates a new message with the given fields .