You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package apiresp
|
|
|
|
import (
|
|
"encoding/json"
|
|
"net/http"
|
|
)
|
|
|
|
func HttpError(w http.ResponseWriter, err error) {
|
|
data, err := json.Marshal(ParseError(err))
|
|
if err != nil {
|
|
panic(err)
|
|
}
|
|
_ = data
|
|
|
|
}
|
|
|
|
func HttpSuccess(w http.ResponseWriter, data any) {
|
|
|
|
}
|