Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for TooNewErrors (0.2 sec)

  1. src/cmd/go/internal/gover/toolchain.go

    }
    
    var ErrTooNew = errors.New("module too new")
    
    func (e *TooNewError) Is(err error) bool {
    	return err == ErrTooNew
    }
    
    // A Switcher provides the ability to switch to a new toolchain in response to TooNewErrors.
    // See [cmd/go/internal/toolchain.Switcher] for documentation.
    type Switcher interface {
    	Error(err error)
    	Switch(ctx context.Context)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Nov 06 23:20:32 UTC 2023
    - 3K bytes
    - Viewed (0)
  2. src/cmd/go/internal/toolchain/switch.go

    // to resolve them.
    //
    // The client calls [Switcher.Error] repeatedly with errors encountered
    // and then calls [Switcher.Switch]. If the errors included any
    // *gover.TooNewErrors (potentially wrapped) and switching is
    // permitted by GOTOOLCHAIN, Switch switches to a new toolchain.
    // Otherwise Switch prints all the errors using base.Error.
    //
    // See https://go.dev/doc/toolchain#switch.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 7K bytes
    - Viewed (0)
Back to top