Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slice of strings with dot #1

Open
microgiantya opened this issue May 30, 2022 · 0 comments
Open

slice of strings with dot #1

microgiantya opened this issue May 30, 2022 · 0 comments

Comments

@microgiantya
Copy link

package main

import (
"fmt"

"github.com/mpvl/unique"

)

func main() {
a := []string{"1653946732.1098", "1653946732.1092", "1653946732.1090", "1653946732.1087", "1653946732.1098"}
unique.Strings(&a)
fmt.Println(a)

}

[1653946732.1098]

expected
[1653946732.1098 1653946732.1092 1653946732.1090 1653946732.1087]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant