mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-30 09:52:25 -05:00
update go-ffmpreg to v0.2.5 (pulls in latest tetratelabs/wazero) (#3203)
This commit is contained in:
parent
6fe96a5611
commit
09f24e0446
75 changed files with 1772 additions and 1913 deletions
19
vendor/github.com/tetratelabs/wazero/experimental/importresolver.go
generated
vendored
Normal file
19
vendor/github.com/tetratelabs/wazero/experimental/importresolver.go
generated
vendored
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
package experimental
|
||||
|
||||
import (
|
||||
"context"
|
||||
|
||||
"github.com/tetratelabs/wazero/api"
|
||||
"github.com/tetratelabs/wazero/internal/expctxkeys"
|
||||
)
|
||||
|
||||
// ImportResolver is an experimental func type that, if set,
|
||||
// will be used as the first step in resolving imports.
|
||||
// See issue 2294.
|
||||
// If the import name is not found, it should return nil.
|
||||
type ImportResolver func(name string) api.Module
|
||||
|
||||
// WithImportResolver returns a new context with the given ImportResolver.
|
||||
func WithImportResolver(ctx context.Context, resolver ImportResolver) context.Context {
|
||||
return context.WithValue(ctx, expctxkeys.ImportResolverKey{}, resolver)
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue