(s string, n int)
| 301 | } |
| 302 | |
| 303 | func pad(s string, n int) string { |
| 304 | if len(s) >= n { |
| 305 | return s |
| 306 | } |
| 307 | n -= len(s) |
| 308 | pre := n / 2 |
| 309 | post := n - pre |
| 310 | return strings.Repeat("=", pre) + s + strings.Repeat("=", post) |
| 311 | } |
no outgoing calls
no test coverage detected