minLen returns the length of the shortest string in s.
()
| 801 | |
| 802 | // minLen returns the length of the shortest string in s. |
| 803 | func (s stringSet) minLen() int { |
| 804 | if len(s) == 0 { |
| 805 | return 0 |
| 806 | } |
| 807 | m := len(s[0]) |
| 808 | for _, str := range s { |
| 809 | if m > len(str) { |
| 810 | m = len(str) |
| 811 | } |
| 812 | } |
| 813 | return m |
| 814 | } |
| 815 | |
| 816 | // maxLen returns the length of the longest string in s. |
| 817 | func (s stringSet) maxLen() int { |
no outgoing calls
no test coverage detected