DEV Community

indiewebdev
indiewebdev

Posted on

Golang Notes - 7

Operators

  • Arithmetic Operators

    • addition +, subtraction -, multiplication *
    • division /, modulus %
  • Bitwise Operators

    • &, |, ^, <<, >>
  • Assignment Operators

    • =, +=, -=, *=, /=, %=
    • ++, -- increment & decrement
  • Comparison Operators

    • == equal, != not equal
    • less < , less or equal <=
    • greater >, greater or equal >=
  • Logical Operators

    • && conditional and
    • || conditional or
    • ! not / logical negation

Top comments (0)