Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
code.rocketnine.space/tslocum/godoc-static
Generate static Go documentation
Install godoc-static
:
go install code.rocket9labs.com/tslocum/godoc-static@latest
Also install godoc
:
go install golang.org/x/tools/cmd/godoc@latest
To generate documentation for specific packages, execute godoc-static
supplying at least one package import path and/or absolute path:
godoc-static -destination=/home/user/sites/docs fmt net/http ~/awesomeproject
When an import path is supplied, the package is sourced from $GOPATH
or $GOROOT
.
When no packages are supplied, documentation is generated for packages listed
by go list ...
.
Packages are not downloaded/updated automatically.
Generate documentation for archive
, net/http
and ~/go/src/code.rocket9labs.com/tslocum/cview
:
godoc-static \
-site-name="Rocket 9 Labs Documentation" \
-site-description-file=/home/user/sitefiles/description.md \
-destination=/home/user/sites/docs \
archive net/http code.rocket9labs.com/tslocum/cview
Path to write site to.
Space-separated list of packages to exclude from the index.
Link to index.html instead of folder.
Address for godoc to listen on while scraping pages.
Site description (markdown-enabled).
Path to markdown file containing site description.
Site footer (markdown-enabled).
Path to markdown file containing site footer.
Site name.
Disable all logging except errors.
Enable verbose logging.
Site ZIP file name.
Please share issues and suggestions here.
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.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.