(sos []sectionOffset, name string)
| 29 | } |
| 30 | |
| 31 | func FindSection(sos []sectionOffset, name string) (sectionOffset, uint64, bool) { |
| 32 | offset := uint64(0) |
| 33 | for _, e := range sos { |
| 34 | if name == e.Name { |
| 35 | return e, offset, true |
| 36 | } |
| 37 | offset += e.Length |
| 38 | } |
| 39 | return sectionOffset{}, 0, false |
| 40 | } |
| 41 | |
| 42 | type meta struct { |
| 43 | version version.Version |
no outgoing calls
no test coverage detected