go 经典面试题 部分二练习题|——迹忆客-ag捕鱼王app官网
web前端
javascript
react
vue
angular
css
html
编程语言
python
php
java
go
typescript
c
c语言
node.js
vba
数据库
postgresql
mysql
redis
mongodb
网络
算法
操作系统
基础教程
git
matlab
docker
正则表达式
bootstrap
sql
jquery
matplotlib
题库
>
go
>
练习:94
go 经典面试题 部分二
关于 getpodaction 定义,下面赋值正确的是() ```go type fragment interface { exec(transinfo *transinfo) error } type getpodaction struct { } func (g getpodaction) exec(transinfo *transinfo) error { ... return nil } ```
★
★
★
a.
var fragment fragment = new(getpodaction)
b.
var fragment fragment = getpodaction
c.
var fragment fragment = &getpodaction{}
d.
var fragment fragment = getpodaction{}
正确答案是:
a,c,d
正确率:
9%
解析:
更多关于 go结构体的内容参考
go 语言结构体(struct) 详解
查看笔记
扫码一下
查看教程更方便
网站地图