1 package rpc 2 3 import ( 4 "context" 5 apb "golang.conradwood.net/apis/auth" 6 ) 7 8 func GetUser(ctx context.Context) *apb.User { 9 co := fromContext(ctx) 10 return co.user 11 } 12
View as plain text