clone from code.google.com/p/go.mobile