Security News
CISA Brings KEV Data to GitHub
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
github.com/n2d/webgl
change from https://godoc.org/github.com/gopherjs/webgl support "syscall/js"
webgl_example.go:
package main
import (
"syscall/js"
"github.com/n2d/webgl"
)
func main() {
var canvas js.Value = js.
Global().
Get("document").
Call("getElementById", "canvas")
canvas.Set("height", 600)
canvas.Set("width", 800)
gl, _ := webgl.NewContext(canvas)
gl.ClearColor(1, 0, 0, 1)
gl.Clear(gl.COLOR_BUFFER_BIT)
}
webgl_example.html:
<html><body><script src="webgl_example.js"></script><canvas id='canvas'></canvas></br></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
CISA's KEV data is now on GitHub, offering easier access, API integration, commit history tracking, and automated updates for security teams and researchers.
Security News
Opengrep forks Semgrep to preserve open source SAST in response to controversial licensing changes.
Security News
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.