Exemplo n.º 1
0
func (this *server) Produce(c context.Context, a *serve.Album) (*serve.Album, error) {
	if a.Name == "error" {
		return nil, errors.New("test error")
	}
	a.Producer = append(a.Producer, "My Label")
	return a, nil
}
Exemplo n.º 2
0
func (this *server) Produce(c context.Context, a *serve.Album) (*serve.Album, error) {
	a.Producer = append(a.Producer, "My Label")
	return a, nil
}