mirror of
https://gitea.com/Lydanne/buildx.git
synced 2025-07-09 21:17:09 +08:00
15 lines
262 B
Go
15 lines
262 B
Go
package appcontext
|
|
|
|
import (
|
|
"context"
|
|
)
|
|
|
|
type Initializer func(context.Context) context.Context
|
|
|
|
var inits []Initializer
|
|
|
|
// Register stores a new context initializer that runs on app context creation
|
|
func Register(f Initializer) {
|
|
inits = append(inits, f)
|
|
}
|