func NewFirestoreClient() *firestore.Client {
	// Use GOOGLE_APPLICATION_CREDENTIALS env var to find the service account key
	ctx := context.Background()
	app, err := firebase.NewApp(ctx, nil)
	if err != nil {
		log.Fatalln(err)
	}

	client, err := app.Firestore(ctx)
	if err != nil {
		log.Fatalln(err)
	}

	return client
}
// NewFirestoreClient creates and initializes a new firestore client.
NewFirestoreClient creates and initializes a new firestore client.
// NewFirestoreClient creates and initializes a new firestore client .
func NewFirestoreClient() *firestore.Client {
	ctx := context.Background()
	app, err := firebase.NewApp(ctx, nil)
	if err != nil {
		log.Fatalln(err)
	}
	client, err := app.Firestore(ctx)
	if err != nil {
		log.Fatalln(err)
	}
	return client
}
func NewFirestoreClient ( ) * firestore . Client { ctx := context . Background ( ) app , err := firebase . NewApp ( ctx , nil ) if err != nil { log . Fatalln ( err ) } client , err := app . Firestore ( ctx ) if err != nil { log . Fatalln ( err ) } return client }
NewFirestoreClient creates and initializes a new firestore client.
NewFirestoreClient creates and initializes a new firestore client .
// Use GOOGLE_APPLICATION_CREDENTIALS env var to find the service account key