// Register registers a handler on the subchannel for the given method.
//
// This function panics if the Handler for the SubChannel was overwritten with
// SetHandler.
Register registers a handler on the subchannel for the given method.

This function panics if the Handler for the SubChannel was overwritten with
SetHandler.
// Register registers a handler on the subchannel for the given method . // // This function panics if the Handler for the SubChannel was overwritten with // SetHandler .
func (c *SubChannel) Register(h Handler, methodName string) {
	r, ok := c.handler.(registrar)
	if !ok {
		panic(fmt.Sprintf(
			"handler for SubChannel(%v) configured with alternate root handler without Register method",
			c.ServiceName(),
		))
	}
	r.Register(h, methodName)
}
func ( c * SubChannel ) Register ( h Handler , methodName string ) { r , ok := c . handler . ( registrar ) if ! ok { panic ( fmt . Sprintf ( " " , c . ServiceName ( ) , ) ) } r . Register ( h , methodName ) }
Register registers a handler on the subchannel for the given method.
Register registers a handler on the subchannel for the given method .