This package enables response with event logging in go-restful apps. For the event logging please read logger/event package
import "github.com/AccelByte/go-restful-plugins/v4/pkg/response"Write(request, response, httpStatusCode, serviceType, eventID, message, entity)WriteError(request, response, httpStatusCode, serviceType, eventErr, errorResponse)&Error{
ErrorCode: unableToWriteResponse,
ErrorMessage: "unable to write response",
ErrorLogMsg: fmt.Sprintf("unable to write response: %+v, body: %+v, error: %v", response, entity, err),
})We recommend use "github.com/pkg/errors" to create error and wrap the errors with stack trace to help with debugging