-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmain.go
26 lines (22 loc) · 841 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
package main
import (
"fmt"
)
func main() {
events := &VASTEvents{
Errors: getURLs(sampleURL, "/track", "/error", 1),
Impressions: getURLs(sampleURL, "/track", "/imp", 1),
Clicks: getURLs(sampleURL, "/track", "/click", 1),
TrackingEvents: map[VASTTrackingEventType][]string{
CreativeView: getURLs(sampleURL, "/track", "/creativeView", 1),
Start: getURLs(sampleURL, "/track", "/start", 1),
FirstQuartile: getURLs(sampleURL, "/track", "/firstQuartile", 1),
MidPointQuartile: getURLs(sampleURL, "/track", "/midPointQuartile", 1),
ThirdQuartile: getURLs(sampleURL, "/track", "/thirdQuartile", 1),
Complete: getURLs(sampleURL, "/track", "/complete", 1),
},
}
builder := NewStringIndexVASTBuilder(str, events)
response := builder.Build()
fmt.Println(string(response))
}