从服务器端语言设置为localStorage

If it's possible to set a cookie from a server side language, is it possible for a server side language to store data in the localStorage property of a browser? I'm interested in doing it in Go but I suppose the principle would be the same in any language. Go has a SetCookie to set a Cookie but not a function to set localStorage. Is there a way to implement it?

    http.SetCookie(w, cookie)

localStorate is meant for reading/writing on the client side only. It's not possible to set it from the server side code as you do with cookies using Set-Cookie response header. More information on localStorage.