go pkg1 源码

2022-07-15 浏览 (1086)

golang pkg1 代码

文件路径:/test/fixedbugs/issue4590.dir/pkg1.go

// Copyright 2012 The Go Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

package pkg1

type A interface {
	Write() error
}

type B interface {
	Hello()
	world()
}

type C struct{}

func (c C) Write() error { return nil }

var T = struct{ A }{nil}
var U = struct{ B }{nil}
var V A = struct{ *C }{nil}
var W = interface {
	Write() error
	Hello()
}(nil)

相关信息

go 源码目录

相关文章

go pkg2 源码

go prog 源码

  • 所属分类: 后端技术
  • 本文标签: golang
  • 版权声明: 本文链接 https://seaxiang.com/blog/3030454520a844269215c69c605d68f1