gitlab.com/evatix-go/core@v1.3.55/cmd/main/stackTrackerTest3.go (about) 1 package main 2 3 import ( 4 "fmt" 5 6 "gitlab.com/evatix-go/core/codestack" 7 "gitlab.com/evatix-go/core/constants" 8 ) 9 10 func stackTrackerTest3() { 11 collection := codestack.NewStacksDefaultCount( 12 codestack.SkipNone) 13 14 fmt.Println(collection.Length()) 15 fmt.Println(collection.CodeStacksStringLimit(2)) 16 // fmt.Println(collection.JoinJsonStrings(constants.NewLineUnix)) 17 // fmt.Println(collection.JoinFileWithLinesStrings(constants.NewLineUnix)) 18 19 st2 := collection.ConcatNewUsingSkip(0) 20 21 fmt.Println(st2.JoinJsonStrings(constants.NewLineUnix)) 22 23 trace3 := codestack.NewStacksCollection(). 24 AddsUsingSkipDefault(0) 25 26 fmt.Println(trace3. 27 JoinShortStrings(constants.NewLineUnix)) 28 fmt.Println("-------------") 29 fmt.Println(collection. 30 JoinFileWithLinesStrings(constants.NewLineUnix)) 31 32 fmt.Println("-------------") 33 34 fmt.Println(collection. 35 Reverse().JoinFileWithLinesStrings(constants.NewLineUnix)) 36 fmt.Println("-------------") 37 38 fmt.Println(collection.Add(collection.First()). 39 Reverse().JoinFileWithLinesStrings(constants.NewLineUnix)) 40 }