- Sort Score
- Result 10 results
- Languages All
Results 101 - 110 of 5,940 for stringAt (0.7 sec)
-
src/log/slog/value.go
} } // String returns Value's value as a string, formatted like [fmt.Sprint]. Unlike // the methods Int64, Float64, and so on, which panic if v is of the // wrong kind, String never panics. func (v Value) String() string { if sp, ok := v.any.(stringptr); ok { return unsafe.String(sp, v.num) } var buf []byte return string(v.append(buf)) } func (v Value) str() string {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 16:12:08 UTC 2024 - 13.3K bytes - Viewed (0) -
src/internal/types/testdata/fixedbugs/issue51145.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:54:25 UTC 2023 - 447 bytes - Viewed (0) -
platforms/native/language-native/src/integTest/groovy/org/gradle/language/rc/WindowsResourcesIntegrationTest.groovy
#include <windows.h> #include <string> #include "resources.h" std::string LoadStringFromResource(UINT stringID) { HMODULE instance = LoadLibraryEx("resources.dll", NULL, LOAD_LIBRARY_AS_DATAFILE); WCHAR * pBuf = NULL; int len = LoadStringW(instance, stringID, reinterpret_cast<LPWSTR>(&pBuf), 0);
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Nov 16 20:20:03 UTC 2023 - 5.4K bytes - Viewed (0) -
src/fmt/stringer_example_test.go
package fmt_test import ( "fmt" ) // Animal has a Name and an Age to represent an animal. type Animal struct { Name string Age uint } // String makes Animal satisfy the Stringer interface. func (a Animal) String() string { return fmt.Sprintf("%v (%d)", a.Name, a.Age) } func ExampleStringer() { a := Animal{ Name: "Gopher", Age: 2, } fmt.Println(a)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Aug 30 19:40:13 UTC 2018 - 551 bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/printf/types.go
return true // via .Error() } // Does it implement fmt.Stringer? if obj, _, _ := types.LookupFieldOrMethod(typ, false, nil, "String"); obj != nil { if fn, ok := obj.(*types.Func); ok { sig := fn.Type().(*types.Signature) if sig.Params().Len() == 0 && sig.Results().Len() == 1 && sig.Results().At(0).Type() == types.Typ[types.String] { return true } } } return false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 02:20:05 UTC 2024 - 8.6K bytes - Viewed (0) -
src/cmd/internal/obj/mips/anames.go
// Code generated by stringer -i a.out.go -o anames.go -p mips; DO NOT EDIT. package mips import "cmd/internal/obj" var Anames = []string{ obj.A_ARCHSPECIFIC: "ABSD", "ABSF", "ABSW", "ADD", "ADDD", "ADDF", "ADDU", "ADDW", "AND", "BEQ", "BFPF", "BFPT", "BGEZ", "BGEZAL", "BGTZ", "BLEZ", "BLTZ", "BLTZAL", "BNE", "BREAK", "CLO", "CLZ", "CMOVF", "CMOVN",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 08 12:17:12 UTC 2023 - 1.4K bytes - Viewed (0) -
pkg/test/framework/resource/resource.go
type ID interface { fmt.Stringer } var _ ID = FakeID("") // FakeID used for testing. type FakeID string func (id FakeID) String() string { return string(id) } var _ Resource = &FakeResource{} // FakeResource used for testing. type FakeResource struct { IDValue string OtherValue string } func (f *FakeResource) ID() ID { return FakeID(f.IDValue)
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue Jun 30 01:00:01 UTC 2020 - 1.3K bytes - Viewed (0) -
staging/src/k8s.io/apimachinery/pkg/util/dump/dump_test.go
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon Mar 27 01:24:22 UTC 2023 - 10.3K bytes - Viewed (0) -
src/cmd/internal/obj/loong64/anames.go
// Code generated by stringer -i a.out.go -o anames.go -p loong64; DO NOT EDIT. package loong64 import "cmd/internal/obj" var Anames = []string{ obj.A_ARCHSPECIFIC: "ABSD", "ABSF", "ADD", "ADDD", "ADDF", "ADDU", "ADDW", "AND", "BEQ", "BGEZ", "BLEZ", "BGTZ", "BLTZ", "BFPF", "BFPT", "BNE", "BREAK", "CLO", "CLZ", "CMPEQD", "CMPEQF", "CMPGED", "CMPGEF",
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 22 02:04:54 UTC 2024 - 1.9K bytes - Viewed (0) -
test/fixedbugs/issue11614.go
// Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. // Test that incorrect expressions involving wrong anonymous interface // do not generate panics in Type Stringer. // Does not compile. package main type I interface { int // ERROR "interface contains embedded non-interface|embedding non-interface type int requires" } func n() {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 11 02:26:58 UTC 2022 - 753 bytes - Viewed (0)