Skip to content

damejeras/gurl

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gurl

A tool to parse URL written in Go

$ gurl --help            
Usage:
  gurl [OPTIONS] input

Application Options:
  -f, --format=     format output with text/template syntax
  -n, --no-newline  do not print new line symbol'

Help Options:
  -h, --help        Show this help message

Usage examples

$ gurl --format "{{(index .Query.scopes 0)}}" "/test?scopes=a%20b"
a b

$ gurl --format "{{.Scheme}}://{{.Host}}{{.Path}}" "https://example.com/test?scopes=a%20b"
https://example.com/test

Can be also used in conjunction with xargs.

About

a tool to parse URL

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages