Implementation of go language constructors (scope and channels) in scala