#NEWLINE# @ classmethod #NEWLINE# def remote_package_path( cls , remote_root , import_path ) : #NEWLINE# #INDENT# "Returns the remote package path portion of the given import path.\n\n    A remote package path is the portion of the remote Go package's import path after the remote\n    root path.\n\n    For example, the remote import path 'https://github.com/bitly/go-simplejson' has\n    a remote root of 'https://github.com/bitly/go-simplejson' and there is only 1 package\n    in that remote root.  The package path in this case is '' or '.' and is normalized\n    to ''.\n\n    Some remote roots have no root package and others have both a root and sub-packages.  The\n    remote root of 'github.com/docker/docker' is an example of the former.  One of the packages\n    you might import from it is 'github.com/docker/docker/daemon/events' and that package has a\n    normalized remote package path of 'daemon/events'.\n\n    :param string remote_root: The path to the remote; generally a scheme-less URL.\n    :param string import_path: The full import path used to import the package in a `.go` source\n                               file.\n    :raises: `ValueError` if the import_path does not lay within the remote root.\n    " #NEWLINE# return cls . package_path ( remote_root , import_path )