
Product
Introducing Reports: An Extensible Reporting Framework for Socket Data
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.
github.com/aos-dev/go-storage/v2
Advanced tools
An application-oriented unified storage layer for Golang.
Basic operations
Extended operations
Multiple list style support
Segment/Multipart support
Common metadata
id: unique key in servicename: relative path towards service's work dirtype: object type cloud be file, dir, link or unknownOptional metadata
size: object's content size.updated-at: object's last updated time.content-md5: md5 digest as defined in rfc2616content-type: media type as defined in rfc2616etag: entity tag as defined in rfc2616storage-class: object's storage class as defined in storage proposalimport (
"log"
"github.com/aos-dev/go-storage/v2"
"github.com/aos-dev/go-storage/v2/pairs"
"github.com/aos-dev/go-services-fs"
)
// Init a service.
store, err := fs.NewStorager(pairs.WithWorkDir("/tmp"))
if err != nil {
log.Fatalf("service init failed: %v", err)
}
// Use Storager API to maintain data.
var buf bytes.Buffer
n, err := store.Read("path/to/file", &buf)
if err != nil {
log.Printf("storager read: %v", err)
}
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.

Product
Explore exportable charts for vulnerabilities, dependencies, and usage with Reports, Socket’s new extensible reporting framework.

Product
Socket for Jira lets teams turn alerts into Jira tickets with manual creation, automated ticketing rules, and two-way sync.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.