skip to Main Content

Is it possible to write Firebase Cloud Functions in Golang such that they can access Firebase services such as Firestore and Storage, in both production and emulators?

Ideally I would like to have a http triggered function that read from and writes to Firestore and Storage while taking advantage of Firebase pricing and the emulators suite.

I know that it is possible to create serverless functions using Cloud Run but that does not give me the ability to interact with local emulators. I would also like to colocate this function with my other typescript functions.

2

Answers


  1. The only currently supported language to write firebase functions in is JavaScript. See:
    https://firebase.google.com/docs/functions

    Login or Signup to reply.
  2. You can use Go to write Firebase Cloud Functions.

    Here are some documentation that you may find useful and that you can follow and replicate in order to deploy projects in Firebase using Golang:

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search