package asa

import "context"

type contextKey int

const key contextKey = 0

func NewContext(ctx context.Context, c *ASA) context.Context {
	return context.WithValue(ctx, key, c)
}

func FromContext(ctx context.Context) *ASA {
	return ctx.Value(key).(*ASA)
}
