utils

package
v1.0.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 1, 2025 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractSheetInfo

func ExtractSheetInfo(url string) (string, string, error)

ExtractSheetInfo extracts the Google Sheets document ID and GID (sheet/tab ID) from a given URL.

Supported Google Sheets URL formats:

Parameters:

  • url: The full URL of a Google Sheets document.

Returns:

  • id: The document ID (string)
  • gid: The sheet/tab GID (string). Defaults to "0" if not found
  • error: If the URL format is invalid

func ReadTextInput added in v1.0.0

func ReadTextInput(textArg string) (string, error)

ReadTextInput returns the body from inline --text or file path

func SplitAndTrim added in v1.0.0

func SplitAndTrim(s string) []string

SplitAndTrim splits comma-separated string and trims whitespace from each email.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL