--
You received this message because you are subscribed to the Google Groups "goweb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-goweb...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
You received this message because you are subscribed to a topic in the Google Groups "goweb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-goweb/ZWcIudRpV6E/unsubscribe?hl=en.
To unsubscribe from this group and all its topics, send an email to golang-goweb...@googlegroups.com.
func (r *ThingsController) Read(id string, ctx context.Context) error {for _, thing := range r.Things {if thing.Id == id {return goweb.API.RespondWithData(ctx, thing)}}return goweb.Respond.WithStatus(ctx, http.StatusNotFound)}
--
You received this message because you are subscribed to a topic in the Google Groups "goweb" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/golang-goweb/ZWcIudRpV6E/unsubscribe.
To unsubscribe from this group and all its topics, send an email to golang-goweb...@googlegroups.com.