initial go program, prepare flag and target URL parsing