Closed lhl2617 closed 3 years ago
As title, use string constants for regex capture group names.
There is a remaining GetMTDMapFromSpecifier function still using string literals -- this function will be refactored in another diff and hence is not changed here.
GetMTDMapFromSpecifier
Unit tests pass (go test ./...)
go test ./...
@kawmarco has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@kawmarco merged this pull request in facebook/openbmc@5ea1f1145796e8ed7ac244bfa2937aa098603282.
Summary
As title, use string constants for regex capture group names.
There is a remaining
GetMTDMapFromSpecifier
function still using string literals -- this function will be refactored in another diff and hence is not changed here.Test plan
Unit tests pass (
go test ./...
)