What is the usage of goto statement in go programming language?



What is the usage of goto statement in go programming language?..

Answer / Munender Singh

The `goto` statement in Go is rarely used because it can make code harder to read and understand. It allows you to transfer control directly to a labeled statement elsewhere in the function. However, its use is discouraged in most cases.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Go Programming Language Interview Questions

What are interfaces to go language?

1 Answers  


Is go (golang) a case sensitive language?

1 Answers  


What is cgo golang?

1 Answers  


What is go?

1 Answers  


What is syntax like in go programming language?

1 Answers  


What is type casting in go programming?

1 Answers  


How will you access command line arguments in a go program?

1 Answers  


What is token in go programming?

1 Answers  


What is the default value of type bool in go programming?

1 Answers  


Does go (golang) support pointer arithmetic?

1 Answers  


Does go support generic programming?

1 Answers  


What is the gopath environment variable?

1 Answers  


Categories