@@ -148,9 +148,9 @@ func NewClientWithFetcher(fetcher Fetcher, cache *GoalLinkCache) *Client {
148148 }
149149}
150150
151- // GetGoalLink retrieves a cached goal link or fetches from Reddit if not cached.
151+ // GoalLink retrieves a cached goal link or fetches from Reddit if not cached.
152152// Returns nil if the goal link was previously searched but not found.
153- func (c * Client ) GetGoalLink (goal GoalInfo ) (* GoalLink , error ) {
153+ func (c * Client ) GoalLink (goal GoalInfo ) (* GoalLink , error ) {
154154 key := GoalLinkKey {MatchID : goal .MatchID , Minute : goal .Minute }
155155
156156 // Check cache first (includes "not found" markers)
@@ -186,9 +186,9 @@ const BatchSize = 5
186186// BatchDelay is the delay between batches to avoid rate limiting.
187187const BatchDelay = 2 * time .Second
188188
189- // GetGoalLinks retrieves links for multiple goals, using cache where available.
189+ // GoalLinks retrieves links for multiple goals, using cache where available.
190190// Goals are de-duplicated and batched to avoid rate limiting.
191- func (c * Client ) GetGoalLinks (goals []GoalInfo ) map [GoalLinkKey ]* GoalLink {
191+ func (c * Client ) GoalLinks (goals []GoalInfo ) map [GoalLinkKey ]* GoalLink {
192192 results := make (map [GoalLinkKey ]* GoalLink )
193193
194194 // De-duplicate goals by key and filter out already-cached goals
@@ -231,7 +231,7 @@ func (c *Client) GetGoalLinks(goals []GoalInfo) map[GoalLinkKey]*GoalLink {
231231
232232 for _ , goal := range uncachedGoals [i :end ] {
233233 key := GoalLinkKey {MatchID : goal .MatchID , Minute : goal .Minute }
234- link , err := c .GetGoalLink (goal )
234+ link , err := c .GoalLink (goal )
235235 if err == nil && link != nil {
236236 results [key ] = link
237237 }
@@ -261,14 +261,14 @@ func (c *Client) searchForGoal(goal GoalInfo) (*GoalLink, error) {
261261 }, nil
262262 }
263263 }
264-
264+
265265 // Strategy 1 didn't find a match, try broader searches
266266 // Only try one additional strategy to balance coverage vs rate limiting
267267 var allResults []SearchResult
268268 if err == nil {
269269 allResults = append (allResults , results1 ... )
270270 }
271-
271+
272272 // Strategy 2: Try with just the scoring team + minute
273273 // Determine which team scored
274274 scoringTeam := goal .AwayTeam
@@ -280,7 +280,7 @@ func (c *Client) searchForGoal(goal GoalInfo) (*GoalLink, error) {
280280 if err == nil {
281281 allResults = append (allResults , results2 ... )
282282 }
283-
283+
284284 // Remove duplicates based on URL
285285 seen := make (map [string ]bool )
286286 uniqueResults := make ([]SearchResult , 0 , len (allResults ))
0 commit comments