I would think you can just add ':z' to the path of the volume, which is a string:
res, err := client.ContainerCreate(
ctx,
&container.Config{
Image: "nginx",
Cmd: []string{},
},
&container.HostConfig{
Mounts: []mount.Mount{
{
Type: mount.TypeVolume,
Source: "/app:z", // <---- HERE
Target: "/target",
},
},
},
nil,
"",
)