Advertisement
dereksir

Untitled

Dec 20th, 2023 (edited)
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 0.23 KB | None | 0 0
  1.         //..
  2.             case "img":
  3.                 // check for src attribute and retrieve its value
  4.                 for _, attr := range token.Attr {
  5.                     if attr.Key == "src" {
  6.                         imageURL := attr.Val
  7.                         fmt.Println("Image URL:", imageURL)
  8.                     }
  9.                 }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement