Testing using local files

前端 未结 2 1882
闹比i
闹比i 2020-12-11 02:05

I\'m looking for what best practice I should use when it comes to testing with Go using local files.

By using local files, I mean that in order to test functionality,

2条回答
  •  醉梦人生
    2020-12-11 02:51

    A folder named testdata is usually used for this purpose as it is ignored by the go tool (see go help packages).

提交回复
热议问题