repositorypackage
0.0.0-20220304184941-5db5c2ac4ee0
Repository: https://github.com/deep2chain/goutils.git
Documentation: pkg.go.dev
# Packages
No description provided by the author
# README
goutils
A collection of handy go utilities. This is go version of pyutils(https://github.com/deep2essence/pyutils)
One-Line Functions
Function | Usage |
---|---|
array2slice | array[:], array[0:len(array)] |
slice2array | copy(array[:],slice[0:len(array)]) |
list2string | strings.Join(s []string, sep string) |
string2list | strings.Split(s string,sep string) |
Diff
Q | A |
---|---|
array vs. slice | array has len(length) &cap(capacity), but slice has no such restriction. what len(slice) returns? what cap(slice) returns? |