Wpis z mikrobloga

Mamy jakiegoś speca w #golang ? A dokładnie uruchomienia #api restowe na #linux i/lub #vps? A jeszcze dalej, jak ustawić na vps adres typu xyz.pl/go jako nasłuchiwanie na zadany folder (np. home/go/src/service)?

W ogóle czy mogę uruchomić taki serwer na maszynie gdzie działają strony www (mysql + php) żeby się to ze sobą nie kłóciło?

Coś w stylu:
http://thenewstack.io/make-a-restful-json-api-go/

#programowanie #linux
  • 4
@hjkl: nie wiem czy na pewno bede tego potrzebowal, moge po stronie linuxa w sites-available ustawic virtual hosta aby dany adres wskazywal na dany folder. Ale kwestia jak ustawic to po stronie golang, po skompilowaniu serwer jest uruchomiony, i na co mam wskazywac, na src czy na bin? Może ktoś kiedyś robił api restowe na golang :)
@Kajoj:
Pierwsze co znalazłem w google:

There's no mod_go. (At least I've not heard of such a thing.)

A go web app by itself is a capable web server. You can listen to port 80 in your app and then directly run it on your server. Trust me: it really works!

But if you are not doing that (for reasons such as having other virtual servers on the same machine, load