Documentation

Overview

Package zero provides facilities for efficiently zeroing Go values.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slice

func Slice(v interface{})

Slice zeroes the elements 0 <= i < v.Len() of the provided slice. Slice panics if the value is not a slice. f

func SliceValue

func SliceValue(v reflect.Value)

SliceValue zeroes the elements 0 <= i < v.Len() of the provided slice value. Slice panics if the value is not a slice. f

func Unsafe

func Unsafe(t reflect.Type, ptr uintptr, n int)

Unsafe zeroes n elements starting at the address ptr. Elements must of type t.

Types

This section is empty.

Source Files