Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //..
- case "img":
- // check for src attribute and retrieve its value
- for _, attr := range token.Attr {
- if attr.Key == "src" {
- imageURL := attr.Val
- fmt.Println("Image URL:", imageURL)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement