package tests

import "gvisor.dev/gvisor/tools/go_generics/tests/anon"

Index

Types

type Baz

type Baz struct {
	T someTypeNotT
}

type BazNew

type BazNew struct {
	T someTypeNotT
}

type Foo

type Foo struct {
	T
	Bar map[string]T `json:"bar,omitempty"`
}

func (Foo) GetBar

func (f Foo) GetBar(name string) T

type FooNew

type FooNew struct {
	Q
	Bar map[string]Q `json:"bar,omitempty"`
}

func (FooNew) GetBar

func (f FooNew) GetBar(name string) Q

type T

type T interface {
	Apply(T) T
}

Source Files

input.go output.go

Version
v0.0.0-20250702182429-85e76111eb28 (latest)
Published
Jul 2, 2025
Platform
linux/amd64
Last checked
5 hours ago

Tools for package owners.