shellgo

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2021 License: MIT Imports: 6 Imported by: 0

README

shellgo

Parse bytecode from go tool objdump output.

How to?

  • make
  • go tool compile -S -N file.go
  • go tool objdump -S file.o | shellgo
Flags
  • -dump <file_name> / Result in file_name.in and file_name.out respectively to stdin and stdout.
  • -version / Print out build version
  • -0x / Change format from packed (02) to formatted (0x00, 0x02, ).

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func STDINReader

func STDINReader() []rune

STDINReader append standard input characters.

Types

type Output added in v0.1.0

type Output struct {
	// contains filtered or unexported fields
}

Output keep raw which is default, unformatted bytecode.

func Parse

func Parse(input string) Output

Parse extracts bytecode from go tool objdump output.

func (Output) Default added in v0.1.0

func (o Output) Default() string

Default return unformatted raw output.

func (Output) Format0x added in v0.1.0

func (o Output) Format0x() string

Format0x format output adding 0x at the beginning at every code.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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