Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for _, line := range lines {
- if len(line) == 0 {
- continue
- }
- trimmed := strings.TrimSpace(line)
- if trimmed != "" && !uniqueMap[trimmed] {
- uniqueMap[trimmed] = true
- ss[i] = trimmed
- i++
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement