14 lines
247 B
Go
14 lines
247 B
Go
|
package layout
|
||
|
|
||
|
import (
|
||
|
"context"
|
||
|
|
||
|
"git.jamestombleson.com/jtom38/newsbot-portal/internal/domain"
|
||
|
)
|
||
|
|
||
|
func getUsername(ctx context.Context) string {
|
||
|
if theme, ok := ctx.Value(domain.UserNameContext).(string); ok {
|
||
|
return theme
|
||
|
}
|
||
|
return ""
|
||
|
}
|