Categorygithub.com/deep2chain/goutils
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

FunctionUsage
array2slicearray[:],
array[0:len(array)]
slice2arraycopy(array[:],slice[0:len(array)])
list2stringstrings.Join(s []string, sep string)
string2liststrings.Split(s string,sep string)

Diff

QA
array vs. slicearray has len(length) &cap(capacity), but slice has no such restriction. what len(slice) returns? what cap(slice) returns?