Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 4,301 for main2 (0.04 sec)

  1. test/typeparam/issue51219.dir/main.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./a"
    	"fmt"
    )
    
    func main() {
    	var x a.I[a.JsonRaw]
    
    	fmt.Printf("%v\n", x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 262 bytes
    - Viewed (0)
  2. test/typeparam/issue50486.dir/main.go

    package main
    
    import fp "./goerror_fp"
    
    func Fold[A, B any](zero B, a A, f func(B, A) B) B {
    	return f(zero, a)
    }
    
    func main() {
    
    	var v any = "hello"
    	Fold(fp.Seq[any]{}, v, func(seq fp.Seq[any], v any) fp.Seq[any] {
    		return seq.Append(v)
    	})
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 248 bytes
    - Viewed (0)
  3. test/closure5.dir/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Check correctness of various closure corner cases
    // that are expected to be inlined
    package main
    
    import "./a"
    
    func main() {
    	if !a.G()()() {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 328 bytes
    - Viewed (0)
  4. test/fixedbugs/issue52856.dir/main.go

    // Copyright 2022 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func F() any {
    	return struct{ int }{0}
    }
    
    func main() {
    	_, ok1 := F().(struct{ int })
    	_, ok2 := a.F().(struct{ int })
    	if !ok1 || ok2 {
    		panic(0)
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sun Jun 26 00:26:59 UTC 2022
    - 343 bytes
    - Viewed (0)
  5. test/fixedbugs/issue32901.dir/main.go

    // Copyright 2019 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"reflect"
    
    	"./c"
    )
    
    func main() {
    	x := c.F()
    	p := c.P()
    	t := reflect.PointerTo(reflect.TypeOf(x))
    	tp := reflect.TypeOf(p)
    	if t != tp {
    		panic("FAIL")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Oct 26 14:24:17 UTC 2021
    - 346 bytes
    - Viewed (0)
  6. test/typeparam/issue49241.dir/main.go

    // Copyright 2021 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./b"
    	"./c"
    )
    
    func main() {
    	if b.G() != c.G() {
    		println(b.G(), c.G())
    		panic("bad")
    	}
    	if b.F() != c.F() {
    		println(b.F(), c.F())
    		panic("bad")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 342 bytes
    - Viewed (0)
  7. src/cmd/cgo/internal/testshared/testdata/issue44031/main/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "testshared/issue44031/b"
    
    type t int
    
    func (t) m() {}
    
    type i interface{ m() } // test that unexported method is correctly marked
    
    var v interface{} = t(0)
    
    func main() {
    	b.F()
    	v.(i).m()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 373 bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/unnamed2/main.go

    // license that can be found in the LICENSE file.
    
    //go:build ignore
    
    package main
    
    // // No C code required.
    import "C"
    
    func FuncInt() int { return 2 }
    
    func FuncRecursive() X { return X{} }
    
    type Y struct {
    	X *X
    }
    type X struct {
    	Y Y
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 12 11:59:56 UTC 2023
    - 366 bytes
    - Viewed (0)
  9. test/fixedbugs/issue19507.dir/main.go

    // license that can be found in the LICENSE file.
    
    // Make sure we can compile assembly with DIV and MOD in it.
    // They get rewritten to runtime calls on GOARM=5.
    
    package main
    
    func f(x, y uint32)
    
    func main() {
    	f(5, 8)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 349 bytes
    - Viewed (0)
  10. test/fixedbugs/issue4252.dir/main.go

    // Copyright 2012 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import "./a"
    
    func main() {
    	if a.InlinedFakeTrue() {
    		panic("returned true was the real one")
    	}
    	if !a.InlinedFakeFalse() {
    		panic("returned false was the real one")
    	}
    	if a.InlinedFakeNil() == nil {
    		panic("returned nil was the real one")
    	}
    	a.Test()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 02 13:43:18 UTC 2016
    - 435 bytes
    - Viewed (0)
Back to top