// NewLocation returns a *Location object
NewLocation returns a *Location object
// NewLocation returns a * Location object
func NewLocation(path string) (*Location, error) {
	result := parsePath(path)
	err := validateResult(result)
	if err != nil {
		return nil, err
	}
	params, err := parseParams(result["params"])
	if err != nil {
		return nil, err
	}
	return &Location{
		Server:    result["server"],
		Namespace: result["namespace"],
		Class:     result["class"],
		Params:    params,
	}, nil
}
func NewLocation ( path string ) ( * Location , error ) { result := parsePath ( path ) err := validateResult ( result ) if err != nil { return nil , err } params , err := parseParams ( result [ " " ] ) if err != nil { return nil , err } return & Location { Server : result [ " " ] , Namespace : result [ " " ] , Class : result [ " " ] , Params : params , } , nil }
NewLocation returns a *Location object
NewLocation returns a * Location object