code: func socksDialerFunction(u *url.URL, forward proxy.Dialer) (proxy.Dialer, error) {
  	var auth *proxy.Auth
  	if u.User != nil {
  		auth = new(proxy.Auth)
  		auth.User = u.User.Username()
  		if p, ok := u.User.Password(); ok {
  			auth.Password = p
  		}
  	}
  
  	return proxy.SOCKS5("tcp", u.Host, auth, forward)
  }
docs: // This is a rip off of proxy.FromURL for "socks" URL scheme