()
| 726 | } |
| 727 | |
| 728 | func ExampleRotate() { |
| 729 | result1 := Rotate("Hello", 0) |
| 730 | result2 := Rotate("Hello", 1) |
| 731 | result3 := Rotate("Hello", 2) |
| 732 | |
| 733 | fmt.Println(result1) |
| 734 | fmt.Println(result2) |
| 735 | fmt.Println(result3) |
| 736 | |
| 737 | // Output: |
| 738 | // Hello |
| 739 | // oHell |
| 740 | // loHel |
| 741 | } |
| 742 | |
| 743 | func ExampleTemplateReplace() { |
| 744 | template := `Hello, my name is {name}, I'm {age} years old.` |
nothing calls this directly
no test coverage detected
searching dependent graphs…