Skip to main content

say_hello_cok/
lib.rs

1#[cfg(feature = "hello")]
2pub fn say_hello(name: &str) -> String {
3    format!("hello {}", name)
4}
5
6#[cfg(feature = "hello")]
7pub fn say_goodbye(name: &str) -> String {
8    format!("goodbye {}", name)
9}
10
11#[cfg(feature = "bye")]
12pub fn say_hello_cok(name: &str) -> String {
13    format!("jancok {}", name)
14}