chore(refactor): modify interface check way (#3855)

Signed-off-by: demoManito <1430482733@qq.com>
This commit is contained in:
jessetang 2024-03-06 22:27:21 +08:00 committed by GitHub
parent 09f8224593
commit 3ea8bd99fb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -15,22 +15,22 @@ type Render interface {
} }
var ( var (
_ Render = JSON{} _ Render = (*JSON)(nil)
_ Render = IndentedJSON{} _ Render = (*IndentedJSON)(nil)
_ Render = SecureJSON{} _ Render = (*SecureJSON)(nil)
_ Render = JsonpJSON{} _ Render = (*JsonpJSON)(nil)
_ Render = XML{} _ Render = (*XML)(nil)
_ Render = String{} _ Render = (*String)(nil)
_ Render = Redirect{} _ Render = (*Redirect)(nil)
_ Render = Data{} _ Render = (*Data)(nil)
_ Render = HTML{} _ Render = (*HTML)(nil)
_ HTMLRender = HTMLDebug{} _ HTMLRender = (*HTMLDebug)(nil)
_ HTMLRender = HTMLProduction{} _ HTMLRender = (*HTMLProduction)(nil)
_ Render = YAML{} _ Render = (*YAML)(nil)
_ Render = Reader{} _ Render = (*Reader)(nil)
_ Render = AsciiJSON{} _ Render = (*AsciiJSON)(nil)
_ Render = ProtoBuf{} _ Render = (*ProtoBuf)(nil)
_ Render = TOML{} _ Render = (*TOML)(nil)
) )
func writeContentType(w http.ResponseWriter, value []string) { func writeContentType(w http.ResponseWriter, value []string) {