AddMissingSlashToURL FIXME ...
(baseUrl *string)
| 484 | |
| 485 | // AddMissingSlashToURL FIXME ... |
| 486 | func AddMissingSlashToURL(baseUrl *string) { |
| 487 | pattern := `\/$` |
| 488 | isMatch, _ := regexp.Match(pattern, []byte(*baseUrl)) |
| 489 | if !isMatch { |
| 490 | *baseUrl += "/" |
| 491 | } |
| 492 | } |
| 493 | |
| 494 | // RemoveStartingSlashFromPath FIXME ... |
| 495 | func RemoveStartingSlashFromPath(relativePath string) string { |
no outgoing calls
no test coverage detected