// GetCalls ends and returns a call sequence
GetCalls ends and returns a call sequence
// GetCalls ends and returns a call sequence
func GetCalls(out io.Reader) (*Calls, error) {
	c := &Calls{}
	buf, _ := ioutil.ReadAll(out)
	if len(buf) == 0 {
		return c, nil
	}
	buf = append(buf, []byte("]}")...)
	err := json.Unmarshal(buf, c)
	return c, err
}
func GetCalls ( out io . Reader ) ( * Calls , error ) { c := & Calls { } buf , _ := ioutil . ReadAll ( out ) if len ( buf ) == 0 { return c , nil } buf = append ( buf , [ ] byte ( " " ) ... ) err := json . Unmarshal ( buf , c ) return c , err }
GetCalls ends and returns a call sequence
GetCalls ends and returns a call sequence