소스 검색

Fix WriteSuccess func description

master
Matt Baer 7 년 전
부모
커밋
2324643026
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. +1
    -1
      response.go

+ 1
- 1
response.go 파일 보기

@@ -41,7 +41,7 @@ func renderString(w http.ResponseWriter, status int, msg string) error {
return writeBody(w, []byte(msg), status, "text/plain")
}

// WriteError writes the successful data and metadata to the ResponseWriter as
// WriteSuccess writes the successful data and metadata to the ResponseWriter as
// JSON.
func WriteSuccess(w http.ResponseWriter, data interface{}, status int) error {
env := &Envelope{


불러오는 중...
취소
저장