gorle

package module
v0.0.0-...-c835553 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2015 License: MIT Imports: 3 Imported by: 0

README

goRLE

Didactics version of Run-Length Encoding on strings in Golang

##Install

go install github.com/dlion/goRLE

##Usage

package main

import (
	"fmt"
	"github.com/dlion/goRLE"
)

func main() {
	value := "WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW""
	enc := gorle.Encode(value)
	fmt.Printf("%s\n%s\n", value, enc)
}
WWWWWWWWWWWWBWWWWWWWWWWWWBBBWWWWWWWWWWWWWWWWWWWWWWWWBWWWWWWWWWWWWWW
12W1B12W3B24W1B14W

Author

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(s string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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