From 6b37b5673609ead6e9434d6537dcf64968bb02da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kamil=20=27Kama=C5=9B=27=20Bruchal?= Date: Wed, 17 Jun 2026 20:58:49 +0200 Subject: [PATCH] fix: clean fetch-sheet lint, gitignore .env --- .gitignore | 1 + fetch-sheet.go | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..4c49bd7 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.env diff --git a/fetch-sheet.go b/fetch-sheet.go index 5c12f32..d5f7dc3 100644 --- a/fetch-sheet.go +++ b/fetch-sheet.go @@ -1,4 +1,4 @@ -package dyzurbot +package dyzurbot import ( "context" @@ -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) {