Registry / utility / go-toolsmith-typep

go-toolsmith-typep

JSON →
library1.1.0gogounverified

Package typep provides type predicates for Go types.

go get github.com/go-toolsmith/typep
INSTALL
IMPORT
SIG · GO-TOOLSMITH-TYPEP
G
go-toolsmith-typep
utilitygov1.1.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

typep
github.com/go-toolsmith/typep

Use typep to check if a type is a basic type.

package main import ( "fmt" "go/types" "github.com/go-toolsmith/typep" ) func main() { // Example: check if a type is a basic type basic := types.Typ[types.Int] fmt.Println(typep.IsBasic(basic)) // true }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
1.1.0latest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
go-toolsmith-typep — go get go-toolsmith-typep · libregistry