When user linux docker image no issues, but windows docker image fails

I get the following error when using windows docker golang image…

Job failed: Error response from daemon: manifest for
golang:latest-windowsservercore-1803 not found

line from .gitlab-ciyml file…

image: golang:latest-windowsservercore

However, when I use the default golang image which is based on linux i think, it works fine with no errors.

the below works…

image: golang:latest

I need the build phase to build windows executable;le hence the change. I have tried lots of different permutations take from…

https://hub.docker.com/_/golang

but nothing works is there something I am doing wrong?

Source: StackOverflow