github.com/Rookout/GoSDK@v0.1.48/pkg/services/instrumentation/module/pcdata_patcher1.16.go (about) 1 //go:build go1.16 && !go1.22 2 // +build go1.16,!go1.22 3 4 package module 5 6 7 8 func (p *PCDataPatcher) CreatePCFile(oldTable []PCDataEntry) ([]PCDataEntry, map[int32]int32, error) { 9 newTable, err := p.createSanitized(oldTable, 10 func(table []PCDataEntry) ([]PCDataEntry, error) { 11 err := p.updateOffsets(table) 12 return table, err 13 }) 14 if err != nil { 15 return nil, nil, err 16 } 17 return newTable, nil, nil 18 }