- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 121 for Tok (0.05 sec)
-
security/pkg/credentialfetcher/plugin/token.go
} } func (t KubernetesTokenPlugin) GetPlatformCredential() (string, error) { if t.path == "" { return "", nil } tok, err := os.ReadFile(t.path) if err != nil { log.Warnf("failed to fetch token from file: %v", err) return "", nil } return strings.TrimSpace(string(tok)), nil } func (t KubernetesTokenPlugin) GetIdentityProvider() string { return "" } func (t KubernetesTokenPlugin) Stop() {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Tue May 23 17:08:31 UTC 2023 - 1.3K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/testing.go
err := Error{pos, text} if res == nil { res = make(map[uint][]Error) } res[prev.line] = append(res[prev.line], err) } }, comments) for s.tok != _EOF { s.next() if s.tok == _Semi && s.lit != "semicolon" { continue // ignore automatically inserted semicolons } prev.line, prev.col = s.line, s.col } return
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Jan 17 19:53:18 UTC 2023 - 2.1K bytes - Viewed (0) -
src/cmd/compile/internal/syntax/tokens.go
Go = _Go Defer = _Defer ) // Make sure we have at most 64 tokens so we can use them in a set. const _ uint64 = 1 << (tokenCount - 1) // contains reports whether tok is in tokset. func contains(tokset uint64, tok token) bool { return tokset&(1<<tok) != 0 } type LitKind uint8 // TODO(gri) With the 'i' (imaginary) suffix now permitted on integer // and floating-point numbers, having a single ImagLit does
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 20 14:52:38 UTC 2023 - 2.6K bytes - Viewed (0) -
src/cmd/compile/internal/test/abiutilsaux_test.go
type expectedDump struct { dump string file string line int } func tokenize(src string) []string { var s scanner.Scanner s.Init(strings.NewReader(src)) res := []string{} for tok := s.Scan(); tok != scanner.EOF; tok = s.Scan() { res = append(res, s.TokenText()) } return res } func verifyParamResultOffset(t *testing.T, f *types.Field, r abi.ABIParamAssignment, which string, idx int) int {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed Sep 13 18:34:00 UTC 2023 - 3.2K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex_test.go
} // drain returns a single string representing the processed input tokens. func drain(input *Input) string { var buf strings.Builder for { tok := input.Next() if tok == scanner.EOF { return buf.String() } if tok == '#' { continue } if buf.Len() > 0 { buf.WriteByte('.') } buf.WriteString(input.Text()) } } type badLexTest struct {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 07:48:38 UTC 2023 - 5.8K bytes - Viewed (0) -
src/go/build/constraint/expr_test.go
t.Run(fmt.Sprint(i), func(t *testing.T) { p := &exprParser{s: tt.in} out := "" for { tok, err := lexHelp(p) if tok == "" && err == nil { break } if out != "" { out += " " } if err != nil { out += "err: " + err.Error() break } out += tok } if out != tt.out { t.Errorf("lex(%q):\nhave %s\nwant %s", tt.in, out, tt.out) } }) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue May 18 22:36:55 UTC 2021 - 7.6K bytes - Viewed (0) -
staging/src/k8s.io/apiextensions-apiserver/pkg/apiserver/schema/cel/validation.go
return 0, nil, nil }) var tok string var isNamed bool for scanner.Scan() { tok = scanner.Text() switch tok { case "[": if !opts.allowArrayNotation { return nil, nil, fmt.Errorf("array notation is not allowed") } if !scanner.Scan() { return nil, nil, fmt.Errorf("unexpected end of JSON path") } tok = scanner.Text()
Registered: Sat Jun 15 01:39:40 UTC 2024 - Last Modified: Mon May 20 18:21:31 UTC 2024 - 32.2K bytes - Viewed (0) -
src/cmd/asm/internal/lex/lex.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Aug 29 18:31:05 UTC 2023 - 4.1K bytes - Viewed (0) -
src/cmd/compile/internal/types2/return.go
if call, ok := syntax.Unparen(s.X).(*syntax.CallExpr); ok && check.isPanic[call] { return true } case *syntax.ReturnStmt: return true case *syntax.BranchStmt: if s.Tok == syntax.Goto || s.Tok == syntax.Fallthrough { return true } case *syntax.BlockStmt: return check.isTerminatingList(s.List, "") case *syntax.IfStmt: if s.Else != nil && check.isTerminating(s.Then, "") &&
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 22 19:32:17 UTC 2024 - 4.4K bytes - Viewed (0) -
src/cmd/vendor/golang.org/x/tools/go/analysis/passes/bools/bools.go
for _, exprs := range comm { op.checkRedundant(pass, exprs) op.checkSuspect(pass, exprs) } }) return nil, nil } type boolOp struct { name string tok token.Token // token corresponding to this operator badEq token.Token // token corresponding to the equality test that should not be used with this operator } var ( or = boolOp{"or", token.LOR, token.NEQ}
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Oct 19 23:33:33 UTC 2023 - 4.9K bytes - Viewed (0)