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) {