MCPcopy Create free account
hub / github.com/auth0/auth0-cli / chunk

Function chunk

internal/keyring/keyring.go:106–121  ·  view source on GitHub ↗
(slice string, chunkSize int)

Source from the content-addressed store, hash-verified

104}
105
106func chunk(slice string, chunkSize int) []string {
107 var chunks []string
108 for i := 0; i < len(slice); i += chunkSize {
109 end := i + chunkSize
110
111 // Necessary check to avoid slicing beyond
112 // slice capacity.
113 if end > len(slice) {
114 end = len(slice)
115 }
116
117 chunks = append(chunks, slice[i:end])
118 }
119
120 return chunks
121}

Callers 1

StoreAccessTokenFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected