func MapChain(mappers ...Mapper) Mapper {
	switch len(mappers) {
	case 0:
		return nopMapper{}
	case 1:
		return mappers[0]
	default:
		return chainMapper{mappers}
	}
}
// MapChain chains the mappers.
//
// If any mapper does not match, this stops checking Mappers and returns
// an empty path and false. This is as opposed to MatchAnd, that runs
// every Matcher and returns the path regardless.
//
// If the Mappers are empty, a no-op Mapper is returned.
// If there is more than one Mapper, the Mappers are called in order
// for UnmapFullPath, with the order reversed for MapPath and MapPrefix.
//
// That is, order these assuming you are starting with a full path and
// working to a path.
MapChain chains the mappers.

If any mapper does not match, this stops checking Mappers and returns
an empty path and false. This is as opposed to MatchAnd, that runs
every Matcher and returns the path regardless.

If the Mappers are empty, a no-op Mapper is returned.
If there is more than one Mapper, the Mappers are called in order
for UnmapFullPath, with the order reversed for MapPath and MapPrefix.

That is, order these assuming you are starting with a full path and
working to a path.
// MapChain chains the mappers . // // If any mapper does not match this stops checking Mappers and returns // an empty path and false . This is as opposed to MatchAnd that runs // every Matcher and returns the path regardless . // // If the Mappers are empty a no - op Mapper is returned . // If there is more than one Mapper the Mappers are called in order // for UnmapFullPath with the order reversed for MapPath and MapPrefix . // // That is order these assuming you are starting with a full path and // working to a path .
func MapChain(mappers ...Mapper) Mapper {
	switch len(mappers) {
	case 0:
		return nopMapper{}
	case 1:
		return mappers[0]
	default:
		return chainMapper{mappers}
	}
}
func MapChain ( mappers ... Mapper ) Mapper { switch len ( mappers ) { case 0 : return nopMapper { } case 1 : return mappers [ 0 ] default : return chainMapper { mappers } } }
MapChain chains the mappers.
MapChain chains the mappers .