We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
i have a file pks1/pkg1.go in my codebase
pks1/pkg1.go
package pkg1 import ( "errors" "fmt" ) func Test3() { fmt.Println("pkg1") } func Test1() (string, error) { return errors.New("aaa") }
package pkg1
import ( "errors" "fmt" )
func Test3() { fmt.Println("pkg1") } func Test1() (string, error) {
return errors.New("aaa")
}
when i run goreturns pkg1.go, the output is:
goreturns pkg1.go
D:\GoStudy\src\suselinks.us\gostudy\pkg1>goreturns pkg1.go package pkg1 import ( "errors" "fmt" ) func Test3() { fmt.Println("pkg1") } func Test1() (string, error) { return errors.New("aaa") }
D:\GoStudy\src\suselinks.us\gostudy\pkg1>goreturns pkg1.go package pkg1
the output show goreturns didn't add zero-value return values at all when formatting
goreturns code commit id:6937071b7e1702a52f31a199c2ebb3796475494f os : windows 7 64bit
6937071b7e1702a52f31a199c2ebb3796475494f
The text was updated successfully, but these errors were encountered:
No branches or pull requests
i have a file
pks1/pkg1.go
in my codebasewhen i run
goreturns pkg1.go
, the output is:the output show goreturns didn't add zero-value return values at all when formatting
goreturns code commit id:
6937071b7e1702a52f31a199c2ebb3796475494f
os : windows 7 64bit
The text was updated successfully, but these errors were encountered: