How to write CF CLI (Cloud Foundry Commands) in Golang Program

Thanks Nathan. If you don’t mind, can you please give some example?