November 2017
Intermediate to advanced
670 pages
17h 35m
English
Here's our entire ProcessCar workflow:
func ProcessCar(lineBase64 string) (err error, carJson string) { step := Get(lineBase64) step = Next(step, Base64ToBytes) step = Next(step, BytesToData) step = Next(step, TimestampData) step = Next(step, DataToJson) json, err := step(nil) if err != nil { Error.Error(err) } else { carJson = json.(string) } return}
How's that for clarity? Each step one after the next and error handling at the very end.