// NewChain creates a new contextMiddleware chain.
NewChain creates a new contextMiddleware chain.
// NewChain creates a new contextMiddleware chain .
func NewChain(cms ...ContextMiddleware) (chain *Chain) {
	chain = new(Chain)
	if len(cms) > 0 {
		chain.middleware = cms[0]
		if len(cms) > 1 {
			chain = chain.Append(cms[1:]...)
		}
	}
	return
}
func NewChain ( cms ... ContextMiddleware ) ( chain * Chain ) { chain = new ( Chain ) if len ( cms ) > 0 { chain . middleware = cms [ 0 ] if len ( cms ) > 1 { chain = chain . Append ( cms [ 1 : ] ... ) } } return }
NewChain creates a new contextMiddleware chain.
NewChain creates a new contextMiddleware chain .