如何在Golang中清除屏幕?

时间:2014-11-26 13:48:52

标签: go

谁能告诉我如何清除屏幕? =)这是我学习的其他运动的迷你练习。我是初学者,我使用eclipse运行此代码

  func  main() {
  var n int;
  fmt.Println("Please note that negative interger will be ignore");
  fmt.Printf("How many times u want to run? : ");
  fmt.Scanf("%d", &n);

  if (n>=0) {
  run(n-1);//this is my function
  }else{
//I want to clear screen here 
  fmt.Println("Please renter give me a positive number");
main()
}
}

0 个答案:

没有答案