Fix comment for godoc
This commit is contained in:
		| @@ -7,11 +7,14 @@ import ( | |||||||
| // Handler interface represents a Service request handler. It's generated | // Handler interface represents a Service request handler. It's generated | ||||||
| // by passing any type of public concrete object with methods into server.NewHandler. | // by passing any type of public concrete object with methods into server.NewHandler. | ||||||
| // Most will pass in a struct. | // Most will pass in a struct. | ||||||
|  | // | ||||||
| // Example: | // Example: | ||||||
| // type Service struct {} | // | ||||||
| // func (s *Service) Method(context, request, response) error { | //	type Service struct {} | ||||||
| //	return nil | // | ||||||
| // } | //	func (s *Service) Method(context, request, response) error { | ||||||
|  | //		return nil | ||||||
|  | //	} | ||||||
| // | // | ||||||
| type Handler interface { | type Handler interface { | ||||||
| 	Name() string | 	Name() string | ||||||
|   | |||||||
| @@ -70,10 +70,10 @@ func NewSubscriber(topic string, h interface{}) Subscriber { | |||||||
| // methods. Call to a service method such as Foo.Bar expects | // methods. Call to a service method such as Foo.Bar expects | ||||||
| // the type: | // the type: | ||||||
| // | // | ||||||
| // type Foo struct {} | //	type Foo struct {} | ||||||
| // func (f *Foo) Bar(ctx, req, rsp) error { | //	func (f *Foo) Bar(ctx, req, rsp) error { | ||||||
| // 	return nil | //		return nil | ||||||
| // } | //	} | ||||||
| // | // | ||||||
| func NewHandler(h interface{}) Handler { | func NewHandler(h interface{}) Handler { | ||||||
| 	return DefaultServer.NewHandler(h) | 	return DefaultServer.NewHandler(h) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user