• About
  • Reference
  • Integrations
  • API
  • Blog
  • About
  • Reference
  • Integrations
  • API
  • Blog
Go Syntax Reference
  • Java
  • C
  • C++
  • C#
  • Python
  • Ruby
  • JavaScript
  • Swift
  • Go
Languages
    • User Program Communication
      • Print
      • User Input
      • Commenting
      • Read from Text File
      • Write to FIle
      • Import Libraries
      • Package Clause
    • Variables
      • Primitive Data Types
      • Type Converstion
      • Variable Declaration
      • Constants
      • Pointers
      • Referencing
      • Arrays
      • Slices
      • Maps
      • Structs
    • Control Flow
      • If Statement
      • Switch Case
      • For Loop
      • For Each
      • While Loop
    • Functions
      • Function Declaration
      • Function Literal
      • Closures
      • Methods
      • Interfaces
      • Defer
Categories
Language
Go
  • Java
  • C
  • C++
  • C#
  • Python
  • Ruby
  • JavaScript
  • Swift
  • Go
Version: 1.6

Categories

  • User Program Communication
    • Print
    • User Input
    • Commenting
    • Read from Text File
    • Write to FIle
    • Import Libraries
    • Package Clause
  • Variables
    • Primitive Data Types
    • Type Converstion
    • Variable Declaration
    • Constants
    • Pointers
    • Referencing
    • Arrays
    • Slices
    • Maps
    • Structs
  • Control Flow
    • If Statement
    • Switch Case
    • For Loop
    • For Each
    • While Loop
  • Functions
    • Function Declaration
    • Function Literal
    • Closures
    • Methods
    • Interfaces
    • Defer

Search Results

Searching for: Blocks in Go
While Loop
Language: Go

The while loop executes a block of code while a boolean expression evaluates to true. It terminates as soon as the expression evaluates to false. The boolean expression is evaluated before each iteration. Instead of using the 'while' keyword, it uses the 'for' keyword with only a Boolean expression. There is no do-while loop in Go.


< Previous Page   |