This project attempts to enhance Golang programs by introducing this program during go build -toolexec=xxx
,
so that it can dynamically intercept framework code execution and add its own execution logic.
- Using command for build and start a gin server:
make test
- Open Browser to visit: http://localhost:9999
- The console of gin server output from the interceptor
|-- cmd // the toolexec program
|-- frameworks // the third part framework instrument
|-- frameworks/core // the base library of the instrument, third part instrument needs import this project
|-- frameworks/gin // the gin framework instrument test
|-- test // the gin server(which needs to be intrument)