Documentation
¶
Index ¶
Constants ¶
View Source
const (
//WhatTheCommitSiteURL - the url to whatthecommit
WhatTheCommitSiteURL = "http://whatthecommit.com"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageBody ¶
type MessageBody struct {
Message string `json:"message"`
}
MessageBody - the message body structure
func NewMessage ¶
func NewMessage() (MessageBody, error)
NewMessage - creates a new message structure
func (*MessageBody) ToJSON ¶
func (m *MessageBody) ToJSON() ([]byte, error)
ToJSON - message body output in json
func (*MessageBody) ToString ¶
func (m *MessageBody) ToString() (string, error)
ToString - message body just as a string
func (*MessageBody) ToXML ¶
func (m *MessageBody) ToXML() ([]byte, error)
ToXML - message body output in xml
Click to show internal directories.
Click to hide internal directories.