Skip to content

在运行时支持热刷go脚本,可动态替换函数、属性。

Notifications You must be signed in to change notification settings

cherry-game/hotfix

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hotfix

基于yaegi + gomonkey技术,在运行时支持热刷go脚本,可动态替换函数、属性。

原理

  • 使用yaegi动态执行go脚本。
  • 使用gomonkey进行函数打桩,完成函数替换。
  • monkey原理技术实现细节。

支持平台

  • 架构
    • amd64
    • arm64
    • 386
    • loong64
  • 操作系统
    • Linux
    • MAC OS X
    • Windows

测试

  • 找到test/foo_test.go文件,运行TestFixFooHelloFunc()

About

在运行时支持热刷go脚本,可动态替换函数、属性。

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages