Skip to content

Commit 30f3405

Browse files
Update yaml/yaml.go
Co-authored-by: Stefan Majewsky <[email protected]>
1 parent 2ac62d5 commit 30f3405

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

yaml/yaml.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ import (
3131
"github.com/sapcc/go-bits/logg"
3232
)
3333

34-
func Unmarshal(in []byte, out any) error {
35-
var outV3 any
34+
func Unmarshal[T any](in []byte, out *T) error {
35+
var outV3 T
3636

3737
err := yaml_v2.Unmarshal(in, &out)
3838
if err != nil {

0 commit comments

Comments
 (0)