bitbucket.org/ai69/amoy@v0.2.3/emoji.go (about)

     1  package amoy
     2  
     3  // EmojiDone returns an emoji char representing the given completion state.
     4  func EmojiDone(done bool) string {
     5  	if done {
     6  		return `☑️`
     7  	}
     8  	return `⏳`
     9  }
    10  
    11  // EmojiBool returns an emoji char representing the given boolean value.
    12  func EmojiBool(yes bool) string {
    13  	if yes {
    14  		return "✅"
    15  	}
    16  	return "❌"
    17  }
    18  
    19  // CharBool returns a Unicode char representing the given boolean value.
    20  func CharBool(yes bool) string {
    21  	if yes {
    22  		return "✔"
    23  	}
    24  	return "✘"
    25  }