highlight_go

package
v1.1.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 25, 2023 License: MIT Imports: 5 Imported by: 0

README

highlight_go

Build Status GoDoc

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

Installation

go get -u github.com/shurcooL/highlight_go

License

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Print

func Print(src []byte, w io.Writer, p syntaxhighlight.Printer) error

func TokenKind

func TokenKind(tok token.Token, lit string) syntaxhighlight.Kind

TokenKind returns a syntaxhighlight token kind value for the given tok and lit.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL