Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 1,812 for Tmpl (0.05 sec)

  1. src/text/template/template.go

    	nt.init()
    	if t.common == nil {
    		return nt, nil
    	}
    	t.muTmpl.RLock()
    	defer t.muTmpl.RUnlock()
    	for k, v := range t.tmpl {
    		if k == t.name {
    			nt.tmpl[t.name] = nt
    			continue
    		}
    		// The associated templates share nt's common structure.
    		tmpl := v.copy(nt.common)
    		nt.tmpl[k] = tmpl
    	}
    	t.muFuncs.RLock()
    	defer t.muFuncs.RUnlock()
    	for k, v := range t.parseFuncs {
    		nt.parseFuncs[k] = v
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 20:57:51 UTC 2024
    - 7.2K bytes
    - Viewed (0)
  2. pkg/config/schema/codegen/collections.go

    )
    
    //go:embed templates/gvk.go.tmpl
    var gvkTemplate string
    
    //go:embed templates/gvr.go.tmpl
    var gvrTemplate string
    
    //go:embed templates/crdclient.go.tmpl
    var crdclientTemplate string
    
    //go:embed templates/types.go.tmpl
    var typesTemplate string
    
    //go:embed templates/clients.go.tmpl
    var clientsTemplate string
    
    //go:embed templates/kind.go.tmpl
    var kindTemplate string
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Oct 25 07:19:43 UTC 2023
    - 5.4K bytes
    - Viewed (0)
  3. pkg/config/schema/codegen/common.go

    	c.Stdout = os.Stdout
    	c.Stderr = os.Stderr
    	return c.Run()
    }
    
    func applyTemplate(tmpl string, i any) (string, error) {
    	t := template.New("tmpl").Funcs(template.FuncMap{
    		"contains": strings.Contains,
    	})
    
    	t2 := template.Must(t.Parse(tmpl))
    
    	var b bytes.Buffer
    	if err := t2.Execute(&b, i); err != nil {
    		return "", err
    	}
    
    	return b.String(), nil
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Sat Mar 30 00:31:03 UTC 2024
    - 4.5K bytes
    - Viewed (0)
  4. src/cmd/go/internal/help/help.go

    	err error
    }
    
    func (w *errWriter) Write(b []byte) (int, error) {
    	n, err := w.w.Write(b)
    	if err != nil {
    		w.err = err
    	}
    	return n, err
    }
    
    // tmpl executes the given template text on data, writing the result to w.
    func tmpl(w io.Writer, text string, data any) {
    	t := template.New("top")
    	t.Funcs(template.FuncMap{"trim": strings.TrimSpace, "capitalize": capitalize})
    	template.Must(t.Parse(text))
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  5. pkg/ctrlz/topics/signals.go

    func (signalsTopic) Prefix() string {
    	return "signal"
    }
    
    func (signalsTopic) Activate(context fw.TopicContext) {
    	tmpl := assets.ParseTemplate(context.Layout(), "templates/signals.html")
    
    	_ = context.HTMLRouter().StrictSlash(true).NewRoute().Path("/").HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
    		fw.RenderHTML(w, tmpl, nil)
    	})
    
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Wed Feb 07 17:12:24 UTC 2024
    - 1.6K bytes
    - Viewed (0)
  6. pkg/test/framework/components/echo/config/param/template_test.go

    // limitations under the License.
    
    package param_test
    
    import (
    	"testing"
    
    	. "github.com/onsi/gomega"
    
    	"istio.io/istio/pkg/test/framework/components/echo/config/param"
    	"istio.io/istio/pkg/test/util/tmpl"
    )
    
    func TestContains(t *testing.T) {
    	cases := []struct {
    		name        string
    		template    string
    		expectFound bool
    	}{
    		{
    			name:        "empty",
    			template:    "",
    			expectFound: false,
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Tue Oct 31 14:48:28 UTC 2023
    - 1.7K bytes
    - Viewed (0)
  7. testing/performance/src/templates/native-dependents-resources/googleTest/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h.pump

    # define GTEST_TEMPLATE_ template <typename T> class
    
    // The template "selector" struct TemplateSel<Tmpl> is used to
    // represent Tmpl, which must be a class template with one type
    // parameter, as a type.  TemplateSel<Tmpl>::Bind<T>::type is defined
    // as the type Tmpl<T>.  This allows us to actually instantiate the
    // template "selected" by TemplateSel<Tmpl>.
    //
    // This trick is necessary for simulating typedef for class templates,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Apr 04 07:21:38 UTC 2024
    - 9.1K bytes
    - Viewed (0)
  8. platforms/documentation/docs/src/snippets/native-binaries/google-test/groovy/libs/googleTest/1.7.0/include/gtest/internal/gtest-type-util.h.pump

    # define GTEST_TEMPLATE_ template <typename T> class
    
    // The template "selector" struct TemplateSel<Tmpl> is used to
    // represent Tmpl, which must be a class template with one type
    // parameter, as a type.  TemplateSel<Tmpl>::Bind<T>::type is defined
    // as the type Tmpl<T>.  This allows us to actually instantiate the
    // template "selected" by TemplateSel<Tmpl>.
    //
    // This trick is necessary for simulating typedef for class templates,
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon Nov 27 17:53:42 UTC 2023
    - 9.1K bytes
    - Viewed (0)
  9. test/fixedbugs/issue16037_run.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"bytes"
    	"fmt"
    	"html/template"
    	"io/ioutil"
    	"log"
    	"os"
    	"os/exec"
    	"path/filepath"
    )
    
    var tmpl = template.Must(template.New("main").Parse(`
    package main
    
    type T struct {
        {{range .Names}}
    	{{.Name}} *string
    	{{end}}
    }
    
    {{range .Names}}
    func (t *T) Get{{.Name}}() string {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:25 UTC 2023
    - 1.3K bytes
    - Viewed (0)
  10. tests/integration/security/remote_jwks/remote_jwks_test.go

    				customizeCall func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions)
    			}{
    				{
    					name:       "remote-jwks-without-service-entry",
    					policyFile: "./testdata/requestauthn-no-se.yaml.tmpl",
    					customizeCall: func(t framework.TestContext, from echo.Instance, opts *echo.CallOptions) {
    						opts.HTTP.Path = "/valid-token-forward-remote-jwks"
    						opts.HTTP.Headers = headers.New().WithAuthz(jwt.TokenIssuer1).Build()
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Mon Apr 08 22:02:59 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top