Skip to content Search Apps Documentation Source Content File Folder Download Copy Actions State String Boolean Number Struct Map Slice Pointer Function Closure Reference Nil Package Type Interface Unknown

contract.gno

0.11 Kb · 12 lines
 1package data
 2
 3var total int
 4
 5func init() {
 6	total = 1000
 7}
 8
 9func Add(nb int) int {
10	total += nb
11	return total
12}