package fixture // Not compiled. The one maker of server text, writing a literal or a named // constant instead of a value read from the decoded response (fix round 3 of // Plan 6 Task 1a, hole 2). Only the last return is legitimate. type serverText struct{ spoken string } type mover struct{ httpc client } const unreviewed = "unreviewed constant" func saySpoken(out int, t serverText) {} func (m *mover) roundTrip(kind int) serverText { res, _ := m.httpc.Do(nil) var e struct{ Error string } _ = json.NewDecoder(res.Body).Decode(&e) switch kind { case 0: return serverText{spoken: "unreviewed literal in the maker"} case 1: return serverText{spoken: unreviewed} case 2: const local = "unreviewed local constant" return serverText{local} } return serverText{spoken: e.Error} }