github.com/vugu/vugu@v0.3.5/comp-key-tinygo.go (about) 1 // +build tinygo 2 3 package vugu 4 5 import "fmt" 6 7 // CompKey is a string in TinyGo for the time being 8 type CompKey string 9 10 // MakeCompKey creates a CompKey from the id and iteration key you provide. 11 // The purpose is to hide the implementation of CompKey as it can vary. 12 func MakeCompKey(id uint64, iterKey interface{}) CompKey { 13 return CompKey(fmt.Sprintf("%x:%v", id, iterKey)) 14 }