https://github.com/loov/lensm
Go assembly and source viewer
https://github.com/loov/lensm
Last synced: 10 months ago
JSON representation
Go assembly and source viewer
- Host: GitHub
- URL: https://github.com/loov/lensm
- Owner: loov
- License: mit
- Created: 2022-07-03T10:13:16.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2025-03-13T10:42:20.000Z (12 months ago)
- Last Synced: 2025-04-03T06:40:02.348Z (11 months ago)
- Language: Go
- Size: 570 KB
- Stars: 3,602
- Watchers: 21
- Forks: 127
- Open Issues: 7
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-go-with-stars - lensm - 01-24 | (Go Tools / Routers)
- awesome-go - lensm - Go assembly and source viewer. (Go Tools / Routers)
- go-awesome - lensm - Go 汇编与源码对照查看工具 (开源类库 / 调试)
- go-awesome - lensm - Go assembly and source code comparison display tool (Open source library / Debugging)
- my-awesome - loov/lensm - 01 star:3.6k fork:0.1k Go assembly and source viewer (Go)
README
# lensm
A tool for viewing assembly and source.

Install with the usual Go commands:
```
go install loov.dev/lensm@main
```
_For Linux you may need to add some [additional dependencies](https://gioui.org/doc/install/linux). You can use `go install --tags nowayland loov.dev/lensm@main` or `go install --tags nox11 loov.dev/lensm@main` respectively to skip building Wayland or X11 version._
To run the program provide a regular expression filter for the
function you want to inspect. `-watch` allows to automatically
reload the executable and information when it changes.
```
lensm -watch -filter Fibonacci lensm
```
Note: The program requires a binary that is built on your computer, otherwise the source code for the functions cannot be loaded.
## Why?
I wrote a blog post at https://www.storj.io/blog/lensm on why and how the core functionality works.