天天看點

golang 控制方法的通路時間

package main

import (
	"time"
	"fmt"
)

func main()  {
   
	limitTime(funcA, 6*time.Second)
}

func limitTime(f