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

Add StiOfXXX in xslice #7

Closed
Aoi-hosizora opened this issue Nov 5, 2020 · 1 comment
Closed

Add StiOfXXX in xslice #7

Aoi-hosizora opened this issue Nov 5, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Aoi-hosizora
Copy link
Owner

Add StiOfXXX functions in xslice just like ItsOfXXX.

func ItsOfString(slice []interface{}) []string {
out := make([]string, len(slice))
for idx := range slice {
out[idx] = slice[idx].(string)
}
return out
}

func StiOfString(slice []string) []interface{} { }
@Aoi-hosizora Aoi-hosizora added the enhancement New feature or request label Nov 5, 2020
@Aoi-hosizora
Copy link
Owner Author

Aoi-hosizora commented Nov 5, 2020

Done in 9a81510.

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

No branches or pull requests

1 participant