Registry / utility / shurcool-highlight-go

shurcool-highlight-go

JSON →
library0.0.0-20230708025100-33e05792540agogounverified

Package highlight_go provides a syntax highlighter for Go source code using go/scanner.

go get github.com/shurcooL/highlight_go
INSTALL
IMPORT
SIG · SHURCOOL-HIGHLIGHT
S
shurcool-highlight-go
utilitygov0.0.0-20230708025100-33e05792540a
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

highlight_go
github.com/shurcooL/highlight_go

Highlights Go source code and returns HTML.

package main import ( "fmt" "github.com/shurcooL/highlight_go" ) func main() { highlighted := highlight_go.Highlight("package main\nfunc main() {}\n") fmt.Println(highlighted) }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
0.0.0-20230708025100-33e05792540alatest on pkg.go.dev
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
shurcool-highlight-go — go get shurcool-highlight-go · libregistry