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-20250605235530-a6711d1e1dc6 (latest)
Published
Jun 5, 2025
Platform
linux/amd64
Last checked
4 hours ago

Tools for package owners.