We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42f9328 commit 17d0b55Copy full SHA for 17d0b55
render/toml.go
@@ -15,7 +15,7 @@ type TOML struct {
15
Data any
16
}
17
18
-var TOMLContentType = []string{"application/toml; charset=utf-8"}
+var tomlContentType = []string{"application/toml; charset=utf-8"}
19
20
// Render (TOML) marshals the given interface object and writes data with custom ContentType.
21
func (r TOML) Render(w http.ResponseWriter) error {
@@ -32,5 +32,5 @@ func (r TOML) Render(w http.ResponseWriter) error {
32
33
// WriteContentType (TOML) writes TOML ContentType for response.
34
func (r TOML) WriteContentType(w http.ResponseWriter) {
35
- writeContentType(w, TOMLContentType)
+ writeContentType(w, tomlContentType)
36
0 commit comments