go: added setAsSource and readFromSource
go: fixed mergeLabels