Skip to content

medama-io/go-referrer-parser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-referrer-parser

Convert HTTP Referer URLs into grouped attributions.

Installation

go get github.com/medama-io/go-referrer-parser

Usage

package main

import (
	"fmt"
	"github.com/medama-io/go-referrer-parser"
)

func main() {
	// Create a new parser on start up.
	parser := referrer.NewParser()

	// Parse a referrer URL.
	name, err := parser.Parse("https://www.google.co.uk")
	
	fmt.Println(name) // "Google"
}

About

Convert HTTP Referrer URLs into grouped attributions.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages