offset

command module
v0.0.0-...-f14a768 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2018 License: BSD-3-Clause-Clear Imports: 5 Imported by: 0

README

Offset is a simple tool for calculating the byte offset for a rune in a file at a specificed line and column number.

Offset is both usable as an executable:

# Install with go get

$ go get github.com/pokstad/offset

# Run with a file arg
$ offset -source test.go -line 3 -column 20
38

# Or omit file arg to provide STDIN:
$ offset -line 1 -column 2
hello
2

Or as a Go package:

GoDoc

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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