kratos/x/readall.go

17 lines
212 B
Go

// Copyright © 2023 Ory Corp
// SPDX-License-Identifier: Apache-2.0
package x
import (
"io"
)
func MustReadAll(r io.Reader) []byte {
all, err := io.ReadAll(r)
if err != nil {
panic(err)
}
return all
}