mirror of
https://github.com/luxfi/utils.git
synced 2026-07-26 22:49:03 +00:00
11 lines
227 B
Go
11 lines
227 B
Go
// Copyright (C) 2019-2025, Lux Industries, Inc. All rights reserved.
|
|
// See the file LICENSE for licensing terms.
|
|
|
|
package utils
|
|
|
|
// Zero returns the zero value of any type T.
|
|
func Zero[T any]() T {
|
|
var zero T
|
|
return zero
|
|
}
|