gitlab.com/evatix-go/core@v1.3.55/codestack/NewStacksPtr.go (about) 1 package codestack 2 3 import "gitlab.com/evatix-go/core/constants" 4 5 func NewStacksPtr( 6 isSkipInvalid, 7 isBreakOnceInvalid bool, 8 startSkipIndex, 9 stackCount int, 10 ) *TraceCollection { 11 traces := NewTraceCollection(stackCount + constants.Capacity2) 12 13 return traces.AddsUsingSkip( 14 isSkipInvalid, 15 isBreakOnceInvalid, 16 startSkipIndex+defaultInternalSkip, 17 stackCount) 18 }