Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for ExampleTick (0.21 sec)

  1. src/time/example_test.go

    	case <-time.After(10 * time.Second):
    		fmt.Println("timed out")
    	}
    }
    
    func ExampleSleep() {
    	time.Sleep(100 * time.Millisecond)
    }
    
    func statusUpdate() string { return "" }
    
    func ExampleTick() {
    	c := time.Tick(5 * time.Second)
    	for next := range c {
    		fmt.Printf("%v %s\n", next, statusUpdate())
    	}
    }
    
    func ExampleMonth() {
    	_, month, day := time.Now().Date()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 13 01:05:00 UTC 2024
    - 22.4K bytes
    - Viewed (0)
Back to top