go p1 源码

2022-07-15 浏览 (823)

golang p1 代码

文件路径:/test/fixedbugs/issue4370.dir/p1.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 p1

type Magic int

type T struct {
	x interface{}
}

func (t *T) M() bool {
	_, ok := t.x.(Magic)
	return ok
}

func F(t *T) {
	println(t)
}

相关信息

go 源码目录

相关文章

go p2 源码

go p3 源码

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