天天看点

golang 控制方法的访问时间

package main

import (
	"time"
	"fmt"
)

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

func limitTime(f