
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
github.com/snabb/lazybytes
The Go package lazybytes implements a bytes.Reader which is initialized lazily on first access.
Documentation:
https://godoc.org/github.com/snabb/lazybytes
Simple example:
f := func() []byte {
fmt.Println("initializing")
return []byte("hello world\n")
}
lr := lazybytes.NewReader(f)
fmt.Println("not yet initialized")
fmt.Println("len =", lr.Len())
lr.WriteTo(os.Stdout)
// Output:
// not yet initialized
// initializing
// len = 12
// hello world
The Git repository is located at: https://github.com/snabb/lazybytes
MIT
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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.