1 Star 1 Fork 1

mjun1833/delve

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
plugin2.go 542 Bytes
一键复制 编辑 原始数据 按行查看 历史
majun 提交于 2023-08-24 16:44 +08:00 . chore: update module name
package main
import (
"fmt"
"gitee.com/mjun1833/delve/_fixtures/internal/pluginsupport"
)
func Fn2() string {
return "world"
}
type asomethingelse struct {
x, y float64
}
func (a *asomethingelse) Callback2(n, m int) float64 {
r := a.x + 2*a.y
r += float64(n) / float64(m)
return r
}
func TypesTest(s pluginsupport.Something) pluginsupport.SomethingElse {
if A != nil {
aIsNotNil(fmt.Sprintf("%s", A))
}
return &asomethingelse{1.0, float64(s.Callback(2))}
}
var A interface{}
func aIsNotNil(str string) {
// nothing here
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/mjun1833/delve.git
git@gitee.com:mjun1833/delve.git
mjun1833
delve
delve
v1.21.1

搜索帮助