-
-
Notifications
You must be signed in to change notification settings - Fork 675
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: Remove version field from compose.yaml
fix: Correct formatting of ConfigMap example in Kubernetes introduction feat: Update startupProbe and readinessProbe in Kubernetes introduction feat: Update startupProbe failure threshold in Kubernetes introduction feat: Add probes and update pod lifecycle in Kubernetes introduction feat: Add string operations examples in Golang concepts
- Loading branch information
1 parent
c544576
commit 7359067
Showing
4 changed files
with
614 additions
and
210 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
package main | ||
|
||
import ( | ||
"fmt" | ||
"strings" | ||
) | ||
|
||
func main() { | ||
|
||
var name = "John" | ||
fmt.Println(len(name)) // It will print the length of the string | ||
fmt.Println(strings.ToUpper(name)) // It will print the string in uppercase | ||
fmt.Println(strings.ToLower(name)) // It will print the string in lowercase | ||
fmt.Println(strings.Title(name)) // It will print the string in title case | ||
fmt.Println(strings.Repeat(name, 3)) // It will repeat the string 3 times | ||
fmt.Println(strings.Replace(name, "J", "K", 1)) // It will replace the first occurrence of J with K | ||
fmt.Println(strings.Split(name, "")) // It will split the string into a slice of characters | ||
} |
Oops, something went wrong.