kitschysynq / hexed

hex-editor style stream encoder for go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Hex-editor style encoder for go

PkgGoDev

Installation

go get github.com/kitschysynq/hexed

Quickstart

package main

import (
	"fmt"
	"os"

	"github.com/kitschysynq/hexed"
)

func main() {
	w := hexed.NewEncoder(os.Stdout)
	defer w.Close()

	fmt.Fprintf(w, "this is a totally rad example")
}

And that will produce output like this:

00000000: 7468 6973 2069 7320 6120 746f 7461 6c6c  this is a totall
00000010: 7920 7261 6420 6578 616d 706c 65         y rad example

About

hex-editor style stream encoder for go

License:MIT License


Languages

Language:Go 100.0%