giturl

package module
v0.0.0-...-6652d65 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 30, 2015 License: MIT Imports: 2 Imported by: 1

README

git-url Build Status

Nothing awesome. A tiny tool to convert various remote URL of Git.

Example

package main

import (
	"fmt"
	"github.com/yelinaung/git-url"
)

func main() {
	sshUrl := "git@github.com:yelinaung/git-url.git"
	fmt.Println(giturl.Ssh2Http(sshUrl))

	httpUrl := "https://github.com/yelinaung/git-url.git"
	fmt.Println(giturl.Http2Ssh(httpUrl))
}

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Http2Ssh

func Http2Ssh(httpUrl string) string

func Ssh2Http

func Ssh2Http(sshUrl string) string

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL