Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for MyFunc (0.07 sec)

  1. test/typeparam/issue49309.go

    // license that can be found in the LICENSE file.
    
    package main
    
    func genfunc[T any](f func(c T)) {
    	var r T
    
    	f(r)
    }
    
    func myfunc(c string) {
    	test2(c)
    }
    
    //go:noinline
    func test2(a interface{}) {
    	_ = a.(string)
    }
    
    func main() {
    	genfunc(myfunc)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Aug 18 17:26:40 UTC 2022
    - 367 bytes
    - Viewed (0)
  2. src/cmd/go/testdata/script/run_issue51125.txt

    go list -deps driver.go
    
    
    -- $WORK/go.mod --
    module example
    
    go 1.17
    -- $WORK/driver.go --
    package main
    
    import "./mypkg"
    
    func main() {
    	mypkg.MyFunc()
    }
    -- $WORK/mypkg/code.go --
    package mypkg
    
    import "fmt"
    
    func MyFunc() {
    	fmt.Println("Hello, world!")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Feb 16 19:10:58 UTC 2022
    - 1.3K bytes
    - Viewed (0)
Back to top