types

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 0 Imported by: 0

Documentation

Overview

Package types provices type helper to ease the development when working with types.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsScalar

func IsScalar[T any]() bool

IsScalar reports whether the type T is a scalar type. The check is done without allocating on the heap.

func ZeroValue

func ZeroValue[T any]() (t T)

ZeroValue returns the zero value of T.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳