Debian Codegraph @

test/typeparam/issue48185a.dir/p.go

raw
1 // Copyright 2021 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package p
6
7 type MarshalOptions struct {
8 Marshalers *Marshalers
9 }
10
11 type Encoder struct {}
12
13 type Marshalers = marshalers[MarshalOptions, Encoder]
14
15 type marshalers[Options, Coder any] struct{}
16
17 func MarshalFuncV1[T any](fn func(T) ([]byte, error)) *Marshalers {
18 return &Marshalers{}
19 }