You can set up the test container to inspect with this,
$ podman run -d -p 1234:1234 --name evanrox alpine:3 sleep 360
When I run the following I get foo { 1234}
however I want foo 1234
(no curly brackets, no spaces). How can I get this with podman/go?
$ podman inspect evanrox --format 'foo '{{index .NetworkSettings.Ports "1234/tcp" 0 }}'
foo { 1234}
Again, I just want "foo 1234""1234"