Search Options

Results per page
Sort
Preferred Languages
Advance

Results 181 - 190 of 633 for isIdent (0.24 sec)

  1. src/net/http/routing_tree_test.go

    			}
    		})
    	}
    }
    
    func (n *routingNode) print(w io.Writer, level int) {
    	indent := strings.Repeat("    ", level)
    	if n.pattern != nil {
    		fmt.Fprintf(w, "%s%q\n", indent, n.pattern)
    	}
    	if n.emptyChild != nil {
    		fmt.Fprintf(w, "%s%q:\n", indent, "")
    		n.emptyChild.print(w, level+1)
    	}
    
    	var keys []string
    	n.children.eachPair(func(k string, _ *routingNode) bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Apr 30 15:43:24 UTC 2024
    - 7K bytes
    - Viewed (0)
  2. pkg/credentialprovider/config.go

    func (ident *DockerConfigEntry) UnmarshalJSON(data []byte) error {
    	var tmp dockerConfigEntryWithAuth
    	err := json.Unmarshal(data, &tmp)
    	if err != nil {
    		return err
    	}
    
    	ident.Username = tmp.Username
    	ident.Password = tmp.Password
    	ident.Email = tmp.Email
    
    	if len(tmp.Auth) == 0 {
    		return nil
    	}
    
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Wed Apr 19 15:11:57 UTC 2023
    - 9.3K bytes
    - Viewed (0)
  3. src/go/token/token.go

    	for i := keyword_beg + 1; i < keyword_end; i++ {
    		keywords[tokens[i]] = i
    	}
    }
    
    // Lookup maps an identifier to its keyword token or [IDENT] (if not a keyword).
    func Lookup(ident string) Token {
    	if tok, is_keyword := keywords[ident]; is_keyword {
    		return tok
    	}
    	return IDENT
    }
    
    // Predicates
    
    // IsLiteral returns true for tokens corresponding to identifiers
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 12:02:03 UTC 2023
    - 6.4K bytes
    - Viewed (0)
  4. test/fixedbugs/issue30566a.go

    // license that can be found in the LICENSE file.
    
    package main
    
    import "fmt"
    
    //go:noinline
    func ident(s string) string { return s }
    
    func returnSecond(x bool, s string) string { return s }
    
    func identWrapper(s string) string { return ident(s) }
    
    func main() {
    	got := returnSecond((false || identWrapper("bad") != ""), ident("good"))
    	if got != "good" {
    		panic(fmt.Sprintf("wanted \"good\", got \"%s\"", got))
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Mar 06 20:04:07 UTC 2019
    - 535 bytes
    - Viewed (0)
  5. src/encoding/json/example_test.go

    func ExampleMarshalIndent() {
    	data := map[string]int{
    		"a": 1,
    		"b": 2,
    	}
    
    	b, err := json.MarshalIndent(data, "<prefix>", "<indent>")
    	if err != nil {
    		log.Fatal(err)
    	}
    
    	fmt.Println(string(b))
    	// Output:
    	// {
    	// <prefix><indent>"a": 1,
    	// <prefix><indent>"b": 2
    	// <prefix>}
    }
    
    func ExampleValid() {
    	goodJSON := `{"example": 1}`
    	badJSON := `{"example":2:]}}`
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Dec 13 18:45:54 UTC 2021
    - 6.1K bytes
    - Viewed (0)
  6. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/demo/demoUtils.kt

    
    fun prettyStringFromReflection(objectReflection: ObjectReflection): String {
        val visitedIdentity = mutableSetOf<OperationId>()
    
        fun StringBuilder.recurse(current: ObjectReflection, depth: Int) {
            fun indent() = "    ".repeat(depth)
            fun nextIndent() = "    ".repeat(depth + 1)
            when (current) {
                is ObjectReflection.ConstantValue -> append(
                    if (current.type is DataType.StringDataType)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 21 14:27:23 UTC 2024
    - 7.3K bytes
    - Viewed (0)
  7. pkg/test/framework/components/echo/kube/templates/deployment.yaml

    apiVersion: v1
    kind: ConfigMap
    metadata:
      name: {{ $.Service }}-certs
    data:
      root-cert.pem: |
    {{ .TLSSettings.RootCert | indent 4 }}
      cert-chain.pem: |
    {{ .TLSSettings.ClientCert | indent 4 }}
      key.pem: |
    {{.TLSSettings.Key | indent 4}}
    ---
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu May 02 21:29:40 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  8. platforms/core-configuration/declarative-dsl-core/src/test/kotlin/org/gradle/internal/declarativedsl/prettyPrintResults.kt

        fun StringBuilder.recurse(current: LanguageResult<*>, depth: Int) {
            fun indent() = "    ".repeat(depth)
            fun nextIndent() = "    ".repeat(depth + 1)
            fun appendIndented(value: Any) {
                append(indent())
                append(value)
            }
            fun appendNextIndented(value: Any) {
                append(nextIndent())
                append(value)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 14 22:06:18 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  9. platforms/core-runtime/logging/src/main/java/org/gradle/util/TextUtil.java

                }
            }
            return false;
        }
    
        /**
         * Indents every line of {@code text} by {@code indent}. Empty lines
         * and lines that only contain whitespace are not indented.
         */
        public static String indent(String text, String indent) {
            logDeprecation();
            StringBuilder builder = new StringBuilder();
            String[] lines = text.split("\n");
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Tue May 28 13:09:37 UTC 2024
    - 8.9K bytes
    - Viewed (0)
  10. src/runtime/os_openbsd_syscall1.go

    // license that can be found in the LICENSE file.
    
    //go:build openbsd && mips64
    
    package runtime
    
    //go:noescape
    func thrsleep(ident uintptr, clock_id int32, tsp *timespec, lock uintptr, abort *uint32) int32
    
    //go:noescape
    func thrwakeup(ident uintptr, n int32) int32
    
    func osyield()
    
    //go:nosplit
    func osyield_no_g() {
    	osyield()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 28 18:17:57 UTC 2021
    - 441 bytes
    - Viewed (0)
Back to top