Documentation ¶
Index ¶
- func MarshalJSON(c Comment) ([]byte, error)
- type Comment
- type Service
- func (cs *Service) Comment(post string, c Comment) error
- func (cs *Service) Load(post string) ([]Comment, error)
- func (cs *Service) ServeComments(post string, w http.ResponseWriter, r *http.Request) error
- func (cs *Service) User(r *http.Request) (string, bool)
- func (cs *Service) WriteHTML(post string, w io.Writer) (int64, error)
- func (cs *Service) WriteJSON(post string, w io.Writer) (int64, error)
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MarshalJSON ¶
Types ¶
type Comment ¶
func UnmarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.