Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
Leon4gr45
/
openmeter
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
openmeter
/
pkg
/
slicesx
/
slice.go
Leon4gr45
Upload folder using huggingface_hub (part 10)
6380833
verified
25 days ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
151 Bytes
package
slicesx
import
"github.com/samber/lo"
func
SliceToPtrSlice
[
T
any
]
(s []T)
[]*T {
return
lo.Map(s,
func
(_ T, i
int
)
*T {
return
&s[i]
})
}