go

Go中的模拟函数

英文: Mock functions in Go 问题 我对依赖项感到困惑。我想要能够用模拟函数调用来替换一些函数调用。以下是我的代码片段: func get_page(url string) str...