
Security News
npm Adopts OIDC for Trusted Publishing in CI/CD Workflows
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
github.com/dowlandaiello/immutable-go
Straightforward, functional immutable data collections for Go.
go get -u github.com/dowlandaiello/immutable-go
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initializes a new list of integers
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initializes a new list of integers
firstElement := list(0) // Get the element at index 0
secondElement := list(1) // Get the element at index 1
...
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers
newList := list.Set(0, 37) // Set the element at index 0 to 37
Or, push a value:
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers
newList := list.Push(102) // Push an integer with the value 102 to the list
Finally, pop a value:
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers
newList := list.Pop() // Remove an integer from the list
import "github.com/dowlandaiello/immutable-go"
list := immutable.NewList(1, 2, 3, 4) // Initialize a new list of integers
length := list.Size() // Get the size of the list
FAQs
Unknown package
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
npm now supports Trusted Publishing with OIDC, enabling secure package publishing directly from CI/CD workflows without relying on long-lived tokens.
Research
/Security News
A RubyGems malware campaign used 60 malicious packages posing as automation tools to steal credentials from social media and marketing tool users.
Security News
The CNA Scorecard ranks CVE issuers by data completeness, revealing major gaps in patch info and software identifiers across thousands of vulnerabilities.