Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 226 for Embed0 (0.11 sec)

  1. src/cmd/vendor/github.com/google/pprof/internal/driver/webhtml.go

    // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    // See the License for the specific language governing permissions and
    // limitations under the License.
    
    package driver
    
    import (
    	"embed"
    	"fmt"
    	"html/template"
    	"os"
    	"sync"
    
    	"github.com/google/pprof/internal/report"
    )
    
    var (
    	htmlTemplates    *template.Template // Lazily loaded templates
    	htmlTemplateInit sync.Once
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 31 19:48:28 UTC 2024
    - 2.6K bytes
    - Viewed (0)
  2. test/fixedbugs/issue48230.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package p
    
    //go:embed issue48230.go // ERROR `go:embed only allowed in Go files that import "embed"`
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Oct 15 01:35:56 UTC 2021
    - 289 bytes
    - Viewed (0)
  3. test/embedvers.go

    // errorcheck -lang=go1.15
    
    // 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 p
    
    import _ "embed"
    
    //go:embed x.txt // ERROR "go:embed requires go1.16 or later"
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 292 bytes
    - Viewed (0)
  4. test/embedfunc.go

    // errorcheck
    
    // 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 p
    
    import _ "embed"
    
    func f() {
    	//go:embed x.txt // ERROR "go:embed cannot apply to var inside func"
    	var x string
    	_ = x
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 19 20:07:52 UTC 2021
    - 308 bytes
    - Viewed (0)
  5. pkg/kubelet/container/runtime_cache_fake.go

    See the License for the specific language governing permissions and
    limitations under the License.
    */
    
    package container
    
    import "context"
    
    // TestRuntimeCache embeds runtimeCache with some additional methods for testing.
    // It must be declared in the container package to have visibility to runtimeCache.
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Sat Nov 05 13:02:13 UTC 2022
    - 1.6K bytes
    - Viewed (0)
  6. docs_src/body_fields/tutorial001_an_py39.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: Union[float, None] = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
        results = {"item_id": item_id, "item": item}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 582 bytes
    - Viewed (0)
  7. docs_src/body_fields/tutorial001_py310.py

        )
        price: float = Field(gt=0, description="The price must be greater than zero")
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Item = Body(embed=True)):
        results = {"item_id": item_id, "item": item}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Fri May 13 23:38:22 UTC 2022
    - 523 bytes
    - Viewed (0)
  8. src/cmd/go/internal/fmtcmd/fmt.go

    				printed = true
    			}
    			continue
    		}
    		if pkg.Error != nil {
    			var nogo *load.NoGoError
    			var embed *load.EmbedError
    			if (errors.As(pkg.Error, &nogo) || errors.As(pkg.Error, &embed)) && len(pkg.InternalAllGoFiles()) > 0 {
    				// Skip this error, as we will format
    				// all files regardless.
    			} else {
    				base.Errorf("%v", pkg.Error)
    				continue
    			}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Nov 03 12:16:35 UTC 2022
    - 3K bytes
    - Viewed (0)
  9. src/cmd/go/testdata/script/list_export_embed.txt

    [short] skip 'runs the compiler to produce export data'
    
    go list -json=Export -export .
    
    -- go.mod --
    module example
    go 1.20
    -- example.go --
    package example
    
    import _ "embed"
    
    //go:embed example.go
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 29 22:01:35 UTC 2023
    - 340 bytes
    - Viewed (0)
  10. docs_src/body_multiple_params/tutorial005_an_py310.py

    class Item(BaseModel):
        name: str
        description: str | None = None
        price: float
        tax: float | None = None
    
    
    @app.put("/items/{item_id}")
    async def update_item(item_id: int, item: Annotated[Item, Body(embed=True)]):
        results = {"item_id": item_id, "item": item}
    Registered: Mon Jun 17 08:32:26 UTC 2024
    - Last Modified: Sat Mar 18 12:29:59 UTC 2023
    - 409 bytes
    - Viewed (0)
Back to top