func ExampleZero() {
	type SimplePtrStruct struct {
		PtrField *int
	}

	ptrStruct := SimplePtrStruct{}

	fmt.Printf("pre allocate.Zero: %v\n", ptrStruct.PtrField)
	Zero(&ptrStruct)
	fmt.Printf("post allocate.Zero: %v\n", *ptrStruct.PtrField)

	// Output:
	// pre allocate.Zero: <nil>
	// post allocate.Zero: 0

}
// ExampleZero is a simple example to demonstrate the how Zero() performs allocation
ExampleZero is a simple example to demonstrate the how Zero() performs allocation
// ExampleZero is a simple example to demonstrate the how Zero () performs allocation
func ExampleZero() {
	type SimplePtrStruct struct {
		PtrField *int
	}
	ptrStruct := SimplePtrStruct{}
	fmt.Printf("pre allocate.Zero: %v\n", ptrStruct.PtrField)
	Zero(&ptrStruct)
	fmt.Printf("post allocate.Zero: %v\n", *ptrStruct.PtrField)
}
func ExampleZero ( ) { type SimplePtrStruct struct { PtrField * int } ptrStruct := SimplePtrStruct { } fmt . Printf ( " \n " , ptrStruct . PtrField ) Zero ( & ptrStruct ) fmt . Printf ( " \n " , * ptrStruct . PtrField ) }
ExampleZero is a simple example to demonstrate the how Zero() performs allocation
ExampleZero is a simple example to demonstrate the how Zero () performs allocation
// Output: // pre allocate.Zero: <nil> // post allocate.Zero: 0