oauth2/server/common.go

15 lines
212 B
Go
Raw Normal View History

2024-10-01 17:38:43 +00:00
package server
import (
"encoding/json"
"fmt"
)
func mustMarshalJson(in any) []byte {
out, err := json.Marshal(in)
if err != nil {
panic(fmt.Errorf("could not marshal %#v: %v", in, err))
}
return out
}