13 lines
165 B
Go
13 lines
165 B
Go
|
package magic
|
||
|
|
||
|
import (
|
||
|
"encoding/json"
|
||
|
"net/http"
|
||
|
)
|
||
|
|
||
|
type Map map[string]any
|
||
|
|
||
|
func (m Map) RespondWriter(w http.ResponseWriter) {
|
||
|
json.NewEncoder(w).Encode(m)
|
||
|
}
|