- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 101 for badwidth (0.15 sec)
-
src/fmt/doc.go
Printf("hi", "guys"): hi%!(EXTRA string=guys) Too few arguments: %!verb(MISSING) Printf("hi%d"): hi%!d(MISSING) Non-int for width or precision: %!(BADWIDTH) or %!(BADPREC) Printf("%*s", 4.5, "hi"): %!(BADWIDTH)hi Printf("%.*s", 4.5, "hi"): %!(BADPREC)hi Invalid or invalid use of argument index: %!(BADINDEX) Printf("%*[2]d", 7): %!d(BADINDEX) Printf("%.[2]d", 7): %!d(BADINDEX)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 14.6K bytes - Viewed (0) -
src/fmt/fmt_test.go
{"%0*d", args(uint64(4), 42), "0042"}, {"%0*d", args('\x04', 42), "0042"}, {"%0*d", args(uintptr(4), 42), "0042"}, // erroneous {"%*d", args(nil, 42), "%!(BADWIDTH)42"}, {"%*d", args(int(1e7), 42), "%!(BADWIDTH)42"}, {"%*d", args(int(-1e7), 42), "%!(BADWIDTH)42"}, {"%.*d", args(nil, 42), "%!(BADPREC)42"}, {"%.*d", args(-1, 42), "%!(BADPREC)42"}, {"%.*d", args(int(1e7), 42), "%!(BADPREC)42"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:31:55 UTC 2024 - 58.6K bytes - Viewed (0) -
src/cmd/compile/internal/typecheck/typecheck.go
if dostrcmp > 1 { // Already in the process of diagnosing an error. return f1 } if f2 != nil { base.Errorf("%v is both field and method", n.Sel) } if f1.Offset == types.BADWIDTH { base.Fatalf("Lookdot badwidth t=%v, f1=%v@%p", t, f1, f1) } n.Selection = f1 n.SetType(f1.Type) if t.IsInterface() { if n.X.Type().IsPtr() { star := ir.NewStarExpr(base.Pos, n.X)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Mar 20 19:08:34 UTC 2024 - 30.5K bytes - Viewed (0) -
src/cmd/compile/internal/types/type.go
// the function name node. Nname Object // Offset in bytes of this field or method within its enclosing struct // or interface Type. For parameters, this is BADWIDTH. Offset int64 } const ( fieldIsDDD = 1 << iota // field is ... argument fieldNointerface ) func (f *Field) IsDDD() bool { return f.flags&fieldIsDDD != 0 }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Apr 04 14:29:45 UTC 2024 - 49.5K bytes - Viewed (0) -
src/cmd/compile/internal/walk/assign.go
if tmp, ok := l.(*ir.Name); !ok || !tmp.AutoTemp() || !types.Identical(tmp.Type(), r.Type) { base.FatalfAt(l.Pos(), "assigning %v to %+v", r.Type, l) } res := ir.NewResultExpr(base.Pos, nil, types.BADWIDTH) res.Index = int64(i) res.SetType(r.Type) res.SetTypecheck(1) nn.Append(ir.NewAssignStmt(base.Pos, l, res)) } return nn } // check assign expression list to
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 08 17:09:06 UTC 2024 - 20.3K bytes - Viewed (0) -
src/cmd/compile/internal/ir/fmt.go
} k := tf.Type.Kind() if reflect.Bool <= k && k <= reflect.Complex128 { name := strings.TrimSuffix(tf.Name, "_") vf := v.Field(i) vfi := vf.Interface() if name == "Offset" && vfi == types.BADWIDTH || name != "Offset" && vf.IsZero() { continue } if vfi == true { fmt.Fprintf(w, " %s", name) } else { fmt.Fprintf(w, " %s:%+v", name, vf.Interface()) } } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 05 15:20:28 UTC 2023 - 26K bytes - Viewed (0) -
src/fmt/print.go
mapString = "map[" percentBangString = "%!" missingString = "(MISSING)" badIndexString = "(BADINDEX)" panicString = "(PANIC=" extraString = "%!(EXTRA " badWidthString = "%!(BADWIDTH)" badPrecString = "%!(BADPREC)" noVerbString = "%!(NOVERB)" invReflectString = "<invalid reflect.Value>" ) // State represents the printer state passed to custom formatters.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 13 21:22:43 UTC 2024 - 31.8K bytes - Viewed (0) -
internal/bucket/bandwidth/measurement.go
// along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth import ( "sync" "sync/atomic" "time" ) const ( // betaBucket is the weight used to calculate exponential moving average betaBucket = 0.1 // Number of averages considered = 1/(1-betaObject) ) // bucketMeasurement captures the bandwidth details for one bucket type bucketMeasurement struct { lock sync.Mutex
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Sat Jun 03 20:41:51 UTC 2023 - 2.9K bytes - Viewed (0) -
internal/bucket/bandwidth/reader.go
// // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth import ( "context" "io" "math" ) // MonitoredReader represents a throttled reader subject to bandwidth monitoring type MonitoredReader struct { r io.Reader throttle *bucketThrottle ctx context.Context // request context
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Wed Sep 06 03:21:59 UTC 2023 - 3.1K bytes - Viewed (0) -
internal/bucket/bandwidth/monitor.go
// GNU Affero General Public License for more details. // // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see <http://www.gnu.org/licenses/>. package bandwidth //go:generate msgp -file=$GOFILE -unexported import ( "context" "sync" "time" "golang.org/x/time/rate" ) //msgp:ignore bucketThrottle Monitor type bucketThrottle struct {
Registered: Sun Jun 16 00:44:34 UTC 2024 - Last Modified: Mon Feb 19 22:54:46 UTC 2024 - 6K bytes - Viewed (0)