When your main() finishes the program is terminated before sample() goroutine can receive the message.
main()
sample()