Go Language for Java Developers Part 4

Following keywords are reserved and may not be used as identifiers.

Share on:  
                 

alt

Following keywords are reserved and may not be used as identifiers.

Java Keywords

Java Keywords

Go Lang Keywords

Go Lang Keywords

There are few obvious keywords like break, case, if, for, etc but few keywords are new in Go Language.

  1. func: To declare the function
  2. interface: To declare the interface (It’s different than Java’s interface)
  3. defer: something like finalise method in Java
  4. go: To create a thread
  5. chan: To do synchronised between threads
  6. var: To declare a variable
  7. range: It’s like an iterator in Java
Tags:   GOGO LANG