mirror of
https://github.com/gin-gonic/gin.git
synced 2025-08-07 11:49:48 +08:00
chore(render): do not export tomlContentType anymore (#4319)
This commit is contained in:
parent
42f93283cf
commit
17d0b553ea
@ -15,7 +15,7 @@ type TOML struct {
|
|||||||
Data any
|
Data any
|
||||||
}
|
}
|
||||||
|
|
||||||
var TOMLContentType = []string{"application/toml; charset=utf-8"}
|
var tomlContentType = []string{"application/toml; charset=utf-8"}
|
||||||
|
|
||||||
// Render (TOML) marshals the given interface object and writes data with custom ContentType.
|
// Render (TOML) marshals the given interface object and writes data with custom ContentType.
|
||||||
func (r TOML) Render(w http.ResponseWriter) error {
|
func (r TOML) Render(w http.ResponseWriter) error {
|
||||||
@ -32,5 +32,5 @@ func (r TOML) Render(w http.ResponseWriter) error {
|
|||||||
|
|
||||||
// WriteContentType (TOML) writes TOML ContentType for response.
|
// WriteContentType (TOML) writes TOML ContentType for response.
|
||||||
func (r TOML) WriteContentType(w http.ResponseWriter) {
|
func (r TOML) WriteContentType(w http.ResponseWriter) {
|
||||||
writeContentType(w, TOMLContentType)
|
writeContentType(w, tomlContentType)
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user