Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 69 for makeTag (0.12 sec)

  1. pkg/revisions/tag_watcher_test.go

    	whs.Create(makeTag("revision", "tag-foo"))
    	track.WaitOrdered("revision,tag-foo")
    	assert.Equal(t, tw.GetMyTags(), sets.New("revision", "tag-foo"))
    
    	whs.Create(makeTag("revision", "tag-bar"))
    	track.WaitOrdered("revision,tag-bar,tag-foo")
    	assert.Equal(t, tw.GetMyTags(), sets.New("revision", "tag-foo", "tag-bar"))
    
    	whs.Update(makeTag("not-revision", "tag-bar"))
    Registered: Fri Jun 14 15:00:06 UTC 2024
    - Last Modified: Thu Nov 16 01:18:03 UTC 2023
    - 2.5K bytes
    - Viewed (0)
  2. src/cmd/vendor/golang.org/x/text/language/parse.go

    	defer func() {
    		if recover() != nil {
    			t = Tag{}
    			err = language.ErrSyntax
    		}
    	}()
    
    	tt, err := language.Parse(s)
    	if err != nil {
    		return makeTag(tt), err
    	}
    	tt, changed := canonicalize(c, tt)
    	if changed {
    		tt.RemakeString()
    	}
    	return makeTag(tt), err
    }
    
    // Compose creates a Tag from individual parts, which may be of type Tag, Base,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 7.5K bytes
    - Viewed (0)
  3. src/cmd/vendor/golang.org/x/text/language/language.go

    )
    
    // Tag represents a BCP 47 language tag. It is used to specify an instance of a
    // specific language or locale. All language tag values are guaranteed to be
    // well-formed.
    type Tag compact.Tag
    
    func makeTag(t language.Tag) (tag Tag) {
    	return Tag(compact.Make(t))
    }
    
    func (t *Tag) tag() language.Tag {
    	return (*compact.Tag)(t).Tag()
    }
    
    func (t *Tag) isCompact() bool {
    	return (*compact.Tag)(t).IsCompact()
    }
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 18.9K bytes
    - Viewed (0)
  4. src/cmd/vendor/golang.org/x/text/language/match.go

    	// TODO: add preferred region to -u-rg-.
    	if e := w.Extensions(); len(e) > 0 {
    		b := language.Builder{}
    		b.SetTag(tt)
    		for _, e := range e {
    			b.AddExt(e)
    		}
    		tt = b.Make()
    	}
    	return makeTag(tt), index, c
    }
    
    // ErrMissingLikelyTagsData indicates no information was available
    // to compute likely values of missing tags.
    var ErrMissingLikelyTagsData = errors.New("missing likely tags data")
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Jan 24 13:01:26 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  5. src/cmd/compile/internal/types2/builtins.go

    					if check.recordTypes() {
    						sig := makeSig(S, S, y.typ)
    						sig.variadic = true
    						check.recordBuiltinType(call.Fun, sig)
    					}
    					x.mode = value
    					x.typ = S
    					break
    				}
    			}
    		}
    
    		// check general case by creating custom signature
    		sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature
    		sig.variadic = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.1K bytes
    - Viewed (0)
  6. src/go/types/builtins.go

    					if check.recordTypes() {
    						sig := makeSig(S, S, y.typ)
    						sig.variadic = true
    						check.recordBuiltinType(call.Fun, sig)
    					}
    					x.mode = value
    					x.typ = S
    					break
    				}
    			}
    		}
    
    		// check general case by creating custom signature
    		sig := makeSig(S, S, NewSlice(T)) // []T required for variadic signature
    		sig.variadic = true
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 30 19:19:55 UTC 2024
    - 27.2K bytes
    - Viewed (0)
  7. src/cmd/vendor/golang.org/x/term/term.go

    func IsTerminal(fd int) bool {
    	return isTerminal(fd)
    }
    
    // MakeRaw puts the terminal connected to the given file descriptor into raw
    // mode and returns the previous state of the terminal so that it can be
    // restored.
    func MakeRaw(fd int) (*State, error) {
    	return makeRaw(fd)
    }
    
    // GetState returns the current state of a terminal which may be useful to
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon May 16 22:24:28 UTC 2022
    - 1.8K bytes
    - Viewed (0)
  8. src/cmd/vendor/golang.org/x/term/term_unsupported.go

    package term
    
    import (
    	"fmt"
    	"runtime"
    )
    
    type state struct{}
    
    func isTerminal(fd int) bool {
    	return false
    }
    
    func makeRaw(fd int) (*State, error) {
    	return nil, fmt.Errorf("terminal: MakeRaw not implemented on %s/%s", runtime.GOOS, runtime.GOARCH)
    }
    
    func getState(fd int) (*State, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Oct 19 23:33:33 UTC 2023
    - 1.1K bytes
    - Viewed (0)
  9. src/archive/tar/writer_test.go

    	)
    
    	type (
    		makeReg struct {
    			size    int64
    			wantStr string
    		}
    		makeSparse struct {
    			makeReg makeReg
    			sph     sparseHoles
    			size    int64
    		}
    		fileMaker any // makeReg | makeSparse
    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{0, ""},
    		tests: []testFnc{
    			testRemaining{0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 38.7K bytes
    - Viewed (0)
  10. src/archive/tar/reader_test.go

    	)
    
    	type (
    		makeReg struct {
    			str  string
    			size int64
    		}
    		makeSparse struct {
    			makeReg makeReg
    			spd     sparseDatas
    			size    int64
    		}
    		fileMaker any // makeReg | makeSparse
    	)
    
    	vectors := []struct {
    		maker fileMaker
    		tests []testFnc
    	}{{
    		maker: makeReg{"", 0},
    		tests: []testFnc{
    			testRemaining{0, 0},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 21 21:14:38 UTC 2022
    - 47.1K bytes
    - Viewed (0)
Back to top