Projects STRLCPY metabigor Commits c06e2bec
🤬
  • ■ ■ ■ ■ ■
    Makefile
    skipped 15 lines
    16 16  run:
    17 17   $(GO) $(GOFLAGS) run *.go
    18 18   
    19  -release:
    20  - VERSION=$(cat $GOPATH/src/github.com/j3ssie/metabigor/core/version.go | grep 'VERSION =' | cut -d '"' -f 2)
    21  - echo "Building release version $VERSION"
    22  - git tag -a $VERSION-m "Release $VERSION"
    23  - git push origin $VERSION
    24 19  update:
    25 20   rm -rf $(GOPATH)/src/github.com/j3ssie/metabigor/static/ip2asn-combined.tsv.gz
    26 21   wget -q https://iptoasn.com/data/ip2asn-combined.tsv.gz -O $(GOPATH)/src/github.com/j3ssie/metabigor/static/ip2asn-combined.tsv.gz
    skipped 5 lines
  • ■ ■ ■ ■ ■ ■
    modules/ga.go
    skipped 19 lines
    20 20   // regex 1
    21 21   regex := regexp.MustCompile(`www\.googletagmanager\.com/ns\.html\?id=[A-Z0-9\-]+`)
    22 22   data := regex.FindStringSubmatch(content)
    23  - fmt.Println(data)
    24 23   
    25 24   if len(data) > 0 {
    26 25   gtm := strings.Split(data[0], "id=")[1]
    skipped 15 lines
    42 41   //for _, id := range ua {
    43 42   // results = append(results, id[0])
    44 43   //}
    45  - 
    46  - fmt.Println("ExtractGoogleTagManger: ", results)
    47 44   return results
    48 45  }
    49 46   
Please wait...
Page is in error, reload to recover