lazydog

command module
v0.0.0-...-75916e0 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: MIT Imports: 1 Imported by: 0

README

Lazydog

Introduction

Just one thing , inject golang source code and print where is the code now !

Sometimes, l need to read some opensource golang project like tidb, jaeger, consul or other things. However, l'm too stupid to follow the code, especially when interface{} flies !

Impl way

l use golang standard lib to parse itself (A language can parse itself, amazing!), and inject what l want to do to the ast file.This is simple actually.

Install
make install
run test
make jumptest
make overtest
how to use

Inject the source code in dir recursively; never mind what the code will look like, just run the fucking opensource project and read the log.

lazydog jump -d src

And of course, lt can be restored

lazydog over -d src
what the log contains
[lazydog][{{goroutine id}}] {{pkgname}}:{{lineNo}} caller={{function}}

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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