"Go vet"의 두 판 사이의 차이

(새 문서: ==개요== ;go vet <syntaxhighlight lang='go' run> package main import "fmt" func main() { fmt.Println("hello world") return fmt.Println("lorem ipsum") } </...)
 
18번째 줄: 18번째 줄:
./main.go:8:2: unreachable code
./main.go:8:2: unreachable code
</syntaxhighlight>
</syntaxhighlight>
==같이 보기==
* [[go test]]


[[분류: go]]
[[분류: go]]

2023년 1월 7일 (토) 18:16 판

1 개요

go vet
package main

import "fmt"

func main() {
        fmt.Println("hello world")
        return
        fmt.Println("lorem ipsum")
}
root@wsl:~/go/src/github.com/jmnote/goproject1# go vet
# command-line-arguments
./main.go:8:2: unreachable code

2 같이 보기

문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}