mirror of
https://github.com/samber/lo.git
synced 2026-04-22 23:47:11 +08:00
524 B
524 B
name, slug, sourceRef, category, subCategory, playUrl, variantHelpers, similarHelpers, position, signatures
| name | slug | sourceRef | category | subCategory | playUrl | variantHelpers | similarHelpers | position | signatures | ||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Nil | nil | type_manipulation.go#L34 | core | type | https://go.dev/play/p/P2sD0PMXw4F |
|
|
1 |
|
Returns a nil pointer of type.
lo.Nil[string]()
// (*string)(nil)
lo.Nil[int]()
// (*int)(nil)
Useful when you need a nil pointer of a specific type without declaring a variable first.