Skip to content

mantyr/urls

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Urls Sanitize

Build Status GoDoc Software License

This stable version

Installation

$ go get github.com/mantyr/urls

Example

package main

import (
    "github.com/mantyr/urls"
)

func main() {
    u := urls.New()
    u.SetBase("http://example.com/path")
    u.SetAddress("http://example.org/path/file")

    u.CheckScheme("http", "https", "")
    u.CheckHost()

    u.Is()
    u.IsHost()
    u.IsPath()
    u.IsFile("jpeg", "doc")
    u.String()
    // more example in url_test.go
}

Author

Oleg Shevelev

About

Golang Urls Sanitize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages