Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UrlShortner ¶
type UrlShortner struct {
// contains filtered or unexported fields
}
func NewUrlShortner ¶
func NewUrlShortner(urls map[string]string) *UrlShortner
func (*UrlShortner) HandleRedirectUrl ¶
func (u *UrlShortner) HandleRedirectUrl(w http.ResponseWriter, r *http.Request)
func (*UrlShortner) HandleRoot ¶
func (u *UrlShortner) HandleRoot(w http.ResponseWriter, r *http.Request)
func (*UrlShortner) HandleShortenUrl ¶
func (u *UrlShortner) HandleShortenUrl(w http.ResponseWriter, r *http.Request)
Click to show internal directories.
Click to hide internal directories.