typeparams

package
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 13, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package typeparams provides utilities for working with Go ASTs with support for type parameters when built with Go 1.18 and higher.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReceiverType

func ReceiverType(fn *ast.FuncDecl) string

ReceiverType returns the named type of the method receiver, sans "*" and type parameters, or "invalid-type" if fn.Recv is ill formed.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL