@kjk1/

book iota 4

Go

No description

fork
loading
Files
  • main.go

This Plugin Crashed!

Error: Error: must not create an existing file {"type":"CREATE_FILE","wid":"0.4659065833912974","path":"main.go","file":{"path":"main.go","content":{"asEncoding":{"base64":"cGFja2FnZSBtYWluCgppbXBvcnQgImZtdCIKCmZ1bmMgbWFpbigpIHsKCS8vIDpzaG93IHN0YXJ0Cgljb25zdCAoCgkJYSA9IGlvdGEgLy8gYSA9IDAKCQlfICAgICAgICAvLyBpb3RhIGlzIGluY3JlbWVudGVkCgkJYiAgICAgICAgLy8gYiA9IDJhCgkpCglmbXQuUHJpbnRmKCJhOiAlZCwgYjogJWRcbiIsIGEsIGIpCgkvLyA6c2hvdyBlbmQKfQo="},"asBuffer":null},"loaded":true}}
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
package main

import "fmt"

func main() {
	// :show start
	const (
		a = iota // a = 0
		_        // iota is incremented
		b        // b = 2a
	)
	fmt.Printf("a: %d, b: %d\n", a, b)
	// :show end
}