Struct mapping api for Go