- Sort Score
- Result 10 results
- Languages All
Results 81 - 90 of 159 for GOEXPERIMENT (0.2 sec)
-
test/typeparam/mdempsky/15.go
// run -goexperiment fieldtrack // 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. // Test that generics, promoted methods, and //go:nointerface // interoperate as expected. package main import ( "reflect" ) func TypeString[T any]() string { return reflect.TypeOf(new(T)).Elem().String() }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 01 19:45:34 UTC 2022 - 1.2K bytes - Viewed (0) -
src/internal/types/testdata/spec/typeAliases1.23b.go
// -lang=go1.23 -gotypesalias=1 -goexperiment=aliastypeparams // Copyright 2024 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 aliasTypes type _ = int type _[P any] = int // A type alias may have fewer type parameters than its RHS. type RHS[P any, Q ~int] struct { p P q Q } type _[P any] = RHS[P, int]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 03:01:18 UTC 2024 - 1.2K bytes - Viewed (0) -
src/internal/buildcfg/cfg.go
// build tag with the same name but prefixed by "goexperiment." which can be // used for compiling alternative files for the experiment. This allows // changes for the experiment, like extra struct fields in the runtime, // without affecting the base non-experiment code at all. for _, exp := range Experiment.Enabled() { list = append(list, "goexperiment."+exp) } return list }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Mar 21 20:08:06 UTC 2024 - 9.5K bytes - Viewed (0) -
src/internal/abi/abi_generic.go
// Copyright 2020 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. //go:build !goexperiment.regabiargs && !amd64 && !arm64 && !loong64 && !ppc64 && !ppc64le && !riscv64 package abi const ( // ABI-related constants. // // In the generic case, these are all zero // which lets them gracefully degrade to ABI0.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Apr 15 17:38:52 UTC 2024 - 1.4K bytes - Viewed (0) -
src/cmd/go/testdata/script/build_shorten_pkg.txt
# Accurate reporting of notable loops in the presence of inlining # can create warnings in sibling directories, and it's nice if those # can be trimmed like subdirectory paths are. env GOEXPERIMENT=loopvar go build -gcflags=inlines/a=-d=loopvar=2 . stderr ^\.[\\/]b[\\/]b\.go:12:6:.*loop.inlined.into.a[\\/]a\.go stderr ^\.[\\/]b[\\/]b\.go:12:9:.*loop.inlined.into.a[\\/]a\.go -- go.mod -- module inlines
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Mar 14 09:07:58 UTC 2023 - 1.4K bytes - Viewed (0) -
src/crypto/internal/boring/fipstls/tls.go
// license that can be found in the LICENSE file. //go:build boringcrypto // Package fipstls allows control over whether crypto/tls requires FIPS-approved settings. // This package only exists with GOEXPERIMENT=boringcrypto, but the effects are independent // of the use of BoringCrypto. package fipstls import ( "internal/stringslite" "sync/atomic" ) var required atomic.Bool
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 1.7K bytes - Viewed (0) -
src/runtime/cgocheck.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Code to check that pointer writes follow the cgo rules. // These functions are invoked when GOEXPERIMENT=cgocheck2 is enabled. package runtime import ( "internal/abi" "internal/goarch" "unsafe" ) const cgoWriteBarrierFail = "unpinned Go pointer stored into non-Go memory"
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 09 04:07:57 UTC 2024 - 7.6K bytes - Viewed (0) -
test/fixedbugs/issue15747.go
// errorcheck -0 -live //go:build !goexperiment.cgocheck2 // Copyright 2016 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. // Issue 15747: liveness analysis was marking heap-escaped params live too much, // and worse was using the wrong bitmap bits to do so. package p var global *[]byte type Q struct{} type T struct{ M string }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:25 UTC 2023 - 1.1K bytes - Viewed (0) -
.github/workflows/go-fips.yml
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed May 22 23:07:14 UTC 2024 - 1.5K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/iimport.go
"cmd/compile/internal/ir" "cmd/compile/internal/types" ) // HaveInlineBody reports whether we have fn's inline body available // for inlining. // // It's a function literal so that it can be overridden for // GOEXPERIMENT=unified. var HaveInlineBody = func(fn *ir.Func) bool { base.Fatalf("HaveInlineBody not overridden") panic("unreachable") } func SetBaseTypeIndex(t *types.Type, i, pi int64) { if t.Obj() == nil {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Jan 26 21:52:50 UTC 2023 - 1.3K bytes - Viewed (0)