Skip to content

Conversation

neelkanth-kaushik
Copy link
Contributor

Under the heading https://segment.com/docs/connections/sources/catalog/libraries/server/go/#whats-new-in-v3

The below code is having a syntax error:

client.Enqueue(analytics.Track{
  UserId: "f4ca124298",
  Event:  "Signed Up",
  Properties: analytics.NewProperties().
    SetCategory("Enterprise"),
    SetCoupon("synapse"),
    SetDiscount(10),
})

Changed it to:

client.Enqueue(analytics.Track{
  UserId: "f4ca124298",
  Event:  "Signed Up",
  Properties: analytics.NewProperties().
    SetCategory("Enterprise").
    SetCoupon("synapse").
    SetDiscount(10),
})

@neelkanth-kaushik neelkanth-kaushik requested a review from a team as a code owner April 3, 2025 12:11
@neelkanth-kaushik neelkanth-kaushik requested a review from pwseg April 3, 2025 12:11
@pwseg pwseg added the fixed-content fix to content that has outdated or wrong information label Apr 3, 2025
@pwseg pwseg merged commit fa047bb into develop Apr 3, 2025
4 checks passed
@pwseg pwseg deleted the neelkanth-kaushik/LIBRARIES-2486 branch April 3, 2025 17:12
Copy link
Contributor

github-actions bot commented Apr 3, 2025

Thank you for your contribution! Your pull request is merged, but may take a day or two to appear on the site.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fixed-content fix to content that has outdated or wrong information
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants