End patterns of self-avoiding walks