()
| 46 | } |
| 47 | |
| 48 | func (u *URL) marshal() *format.Subsection { |
| 49 | if u.raw == nil { |
| 50 | u.raw = &format.Subsection{} |
| 51 | } |
| 52 | |
| 53 | u.raw.Name = u.Name |
| 54 | u.raw.SetOption(insteadOfKey, u.InsteadOf) |
| 55 | |
| 56 | return u.raw |
| 57 | } |
| 58 | |
| 59 | func findLongestInsteadOfMatch(remoteURL string, urls map[string]*URL) *URL { |
| 60 | var longestMatch *URL |