Categorygithub.com/x86kernel/htmlcolor
modulepackage
0.0.0-20190529101448-c589f58466d0
Repository: https://github.com/x86kernel/htmlcolor.git
Documentation: pkg.go.dev

# README

htmlcolor

Html syntax highlighter for Go

Installation

go get github.com/x86kernel/htmlcolor

Example Code

package main

import (
        "bytes"
        "fmt"
        
        "github.com/x86kernel/htmlcolor"
)

func main() {
        htmlformatter := htmlcolor.NewFormatter()

        testhtml := []byte("<html>\n<head>\n<body>\n</body>\n</head>\n</html>")

        buffer := bytes.NewBuffer(make([]byte, len(testhtml)))
        htmlformatter.Format(buffer, testhtml)

        fmt.Println(buffer)
}

# Functions

No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author