fix: clean fetch-sheet lint, gitignore .env

This commit is contained in:
Kamil 'Kamaś' Bruchal 2026-06-17 20:58:49 +02:00
parent 6c177c9514
commit 6b37b56736
2 changed files with 3 additions and 2 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
.env

View File

@ -10,7 +10,7 @@ import (
"google.golang.org/api/sheets/v4"
)
// ReadRota czyta zadany zakres z arkusza i zwraca wiersze.
// ReadSheet czyta zadany zakres z arkusza i zwraca wiersze.
// spreadsheetID to ID z URL-a arkusza, readRange np. "Dyżury!A1:C30".
// Klucz API jest wczytywany z pliku .env (zmienna GOOGLE_API_KEY).
func ReadSheet(ctx context.Context, spreadsheetID, readRange string) ([][]interface{}, error) {