Skip to content

Commit 17d0b55

Browse files
authored
chore(render): do not export tomlContentType anymore (#4319)
1 parent 42f9328 commit 17d0b55

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

render/toml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ type TOML struct {
1515
Data any
1616
}
1717

18-
var TOMLContentType = []string{"application/toml; charset=utf-8"}
18+
var tomlContentType = []string{"application/toml; charset=utf-8"}
1919

2020
// Render (TOML) marshals the given interface object and writes data with custom ContentType.
2121
func (r TOML) Render(w http.ResponseWriter) error {
@@ -32,5 +32,5 @@ func (r TOML) Render(w http.ResponseWriter) error {
3232

3333
// WriteContentType (TOML) writes TOML ContentType for response.
3434
func (r TOML) WriteContentType(w http.ResponseWriter) {
35-
writeContentType(w, TOMLContentType)
35+
writeContentType(w, tomlContentType)
3636
}

0 commit comments

Comments
 (0)