go if 源码

  • 2022-07-15
  • 浏览 (1149)

golang if 代码

文件路径:/test/syntax/if.go

// errorcheck

// Copyright 2011 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 main

func x() {
}

func main() {
	if {  // ERROR "missing condition"
	}
	
	if x(); {  // ERROR "missing condition"
	}
}

相关信息

go 源码目录

相关文章

go chan 源码

go chan1 源码

go composite 源码

go ddd 源码

go else 源码

go import 源码

go initvar 源码

go semi1 源码

go semi2 源码

go semi3 源码

0  赞