小编Var*_*tro的帖子

这是在golang的演员吗?

paxPayment, ok = dataObject.(*entities.PassengerPayment)

括号用于什么?我不确定这个赋值操作中发生了什么.

您还需要更多细节才能回答这个问题吗?

types type-conversion go

32
推荐指数
1
解决办法
2万
查看次数

如何依次运行golang测试?

当我跑go test,我的输出:

--- FAIL: TestGETSearchSuccess (0.00s)
        Location:       drivers_api_test.go:283
        Error:          Not equal: 200 (expected)
                                != 204 (actual)

--- FAIL: TestGETCOSearchSuccess (0.00s)
        Location:       drivers_api_test.go:391
        Error:          Not equal: 200 (expected)
                                != 204 (actual)
Run Code Online (Sandbox Code Playgroud)

但是在我go test再次运行之后,我的所有测试都通过了.

只有当我重置我的mysql数据库,然后go test第一次运行时,测试才会失败.

对于每个GET请求,我POST之前都会请求确保在数据库中创建数据.

谁能帮助我如何确保测试按顺序运行?那是POST请求在GET请求之前运行?

testing go

11
推荐指数
3
解决办法
2万
查看次数

无法建立GNU automake

使用以下命令安装自动制作 wget http://ftp.gnu.org/gnu/automake/automake-1.15.tar.gz

./configure --prefix=$HOME/local 对我来说很好。

完成此步骤后,我运行了make但失败了:

  GEN      bin/automake
  GEN      bin/aclocal
  GEN      t/ax/shell-no-trail-bslash
  GEN      t/ax/cc-no-c-o
  GEN      runtest
  GEN      lib/Automake/Config.pm
  GEN      doc/aclocal-1.15.1
  GEN      doc/automake-1.15.1
help2man: can't get `--help' info from automake-1.15
Try `--no-discard-stderr' if option outputs to stderr
make: *** [doc/automake-1.15.1] Error 2
Run Code Online (Sandbox Code Playgroud)

我不知道该怎么办!

另一件事是我尝试运行bin/aclocal,它说:

Can't locate Automake/Config.pm in @INC (@INC contains: /home/v/varun/local/share/automake-1.15 /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at bin/aclocal line 37.
BEGIN failed--compilation aborted at bin/aclocal line 37.
Run Code Online (Sandbox Code Playgroud)

请帮忙!

您还有其他问题吗?

unix automake gnu

5
推荐指数
1
解决办法
4683
查看次数

如何使用本地运行的emacs访问远程文件?

通常,要编辑我的文件,我需要ssh到主机sunfire和主机上,我需要ssh到另一台主机xcnc1.我的文件xcnc1只能通过我的文件访问sunfire.

我的问题是如何xcnc1从本地计算机访问该文件?

emacs ssh networking remote-access

1
推荐指数
1
解决办法
54
查看次数

标签 统计

go ×2

automake ×1

emacs ×1

gnu ×1

networking ×1

remote-access ×1

ssh ×1

testing ×1

type-conversion ×1

types ×1

unix ×1