maps

package
v0.0.13 Latest Latest
Warning

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

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

Documentation

Overview

This is a test package.

Index

Constants

This section is empty.

Variables

View Source
var Test2Pool = sync.Pool{New: func() any { return new(Test2) }}
View Source
var TtestPool = sync.Pool{New: func() any { return new(Ttest) }}
View Source
var Ttestp_Pool = sync.Pool{New: func() any { return new(Ttest) }}

Functions

This section is empty.

Types

type Test2

type Test2 struct {
	// contains filtered or unexported fields
}

func (*Test2) DeepCopy

func (in *Test2) DeepCopy() *Test2

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Test2.

func (*Test2) DeepCopyInto

func (in *Test2) DeepCopyInto(out *Test2)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Test2) Reset

func (in *Test2) Reset()

Reset puts the given value back into the pool.

func (*Test2) ResetNoSelf

func (in *Test2) ResetNoSelf()

ResetNoSelf puts the given field value back into the pool.

func (*Test2) ResetOnlySelf added in v0.0.2

func (in *Test2) ResetOnlySelf()

ResetOnlySelf puts the given value back into the pool.

type Ttest

type Ttest struct {
	Byte  map[string]byte
	Uint8 map[string]uint8
	Int8  map[string]int8 // TODO: int8 becomes byte in SnippetWriter
	Int16 map[string]int16
	Int32 map[string]int32
	Int64 map[string]int64

	Uint16       map[string]uint16
	Uint32       map[string]uint32
	Uint64       map[string]uint64
	Float32      map[string]float32
	Float64      map[string]float64
	String       map[string]string
	StringPtr    map[string]*string
	StringPtrPtr map[string]**string
	Map          map[string]map[string]string
	MapPtr       map[string]*map[string]string
	Slice        map[string][]string
	SlicePtr     map[string]*[]string
	Struct       map[string]Ttest
	StructPtr    map[string]*Ttest
	StructTest2  map[string]Test2
}

func (*Ttest) DeepCopy

func (in *Ttest) DeepCopy() *Ttest

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Ttest.

func (*Ttest) DeepCopyInto

func (in *Ttest) DeepCopyInto(out *Ttest)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Ttest) Reset

func (in *Ttest) Reset()

Reset puts the given value back into the pool.

func (*Ttest) ResetNoSelf

func (in *Ttest) ResetNoSelf()

ResetNoSelf puts the given field value back into the pool.

func (*Ttest) ResetOnlySelf added in v0.0.2

func (in *Ttest) ResetOnlySelf()

ResetOnlySelf puts the given value back into the pool.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL