github.com/pyroscope-io/pyroscope@v0.37.3-0.20230725203016-5f6947968bd0/pkg/util/arenahelper/arenas_disabled.go (about) 1 //go:build !goexperiment.arenas 2 3 // Package arenahelper ... 4 package arenahelper 5 6 type ArenaWrapper struct { 7 } 8 9 func NewArenaWrapper() ArenaWrapper { 10 return ArenaWrapper{} 11 } 12 func Free(_ ArenaWrapper) { 13 14 } 15 func MakeSlice[T any](_ ArenaWrapper, l, c int) []T { 16 return make([]T, l, c) 17 } 18 func AppendA[T any](data []T, v T, _ ArenaWrapper) []T { 19 return append(data, v) 20 }