func NewItem(item *item.Item) (*Item, error) {
	return &Item{
		ID:  item.ID,
		Qty: item.Qty,
	}, nil
}
NewItem creates a new Item from an existing Item.
package order
import (
	"context"
	"encoding/json"
	"fmt"
	"io/ioutil"
	"net/http"
	"sort"
	"strconv"
	"strings"
	"github.com/obitech/micro-obs/item"
	"github.com/obitech/micro-obs/util"
	ot "github.com/opentracing/opentracing-go"
	"github.com/opentracing/opentracing-go/ext"
	"github.com/pkg/errors"
)
type Order struct {
	ID    int64   `json:"id"`
	Items []*Item `json:"items"`
}
type Item struct {
	ID  string `json:"id"`
	Qty int    `json:"qty"`
}
type notFoundError struct {
	err string
}
func (e notFoundError) Error() string {
	return e.err
}
func (o *Order) String() string {
	return fmt.Sprintf("ID:%d Items:%+v", o.ID, o.Items)
}
func (i *Item) String() string {
	return fmt.Sprintf("ID:%s Qty:%d", i.ID, i.Qty)
}