
Security News
Opengrep Adds Apex Support and New Rule Controls in Latest Updates
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
github.com/4ydx/webgl
GopherJS bindings for WebGL context.
Supports a subset of webgl2: VAOs and instanced arrays. Adding additional support is trivial and pull requests are welcome.
webgl_example.go:
package main
import (
"github.com/gopherjs/gopherjs/js"
"github.com/gopherjs/webgl"
)
func main() {
document := js.Global.Get("document")
canvas := document.Call("createElement", "canvas")
document.Get("body").Call("appendChild", canvas)
attrs := webgl.DefaultAttributes()
attrs.Alpha = false
gl, err := webgl.NewContext(canvas, attrs)
if err != nil {
js.Global.Call("alert", "Error: "+err.Error())
}
gl.ClearColor(0.8, 0.3, 0.01, 1)
gl.Clear(gl.COLOR_BUFFER_BIT)
}
webgl_example.html:
<html><body><script src="webgl_example.js"></script></body></html>
To produce webgl_example.js
file, run gopherjs build webgl_example.go
.
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
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.
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.