GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • XGo
  • Tutorials

This view

  • Original page
  • New address

GeezerVison is showing tutorial.xgo.dev — XGo by Tutorials: Booleans

  • XGo
  • Tutorials
  • Booleans

Booleans

The bool type represents Boolean variables. Variables of bool type can have one of two values: true or false. The zero value for a bool is false.

var flag bool // no value assigned, set to false var isAwesome = true println(flag, isAwesome)

In XGo, you can cast bool to number types.

println int(true) // 1 println float64(true) // 1 println complex64(true) // (1+0i)

Next example: Strings

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.