add: numbers and strings exercises

This commit is contained in:
Inanc Gumus
2018-10-27 17:15:23 +03:00
parent c37cf60701
commit 9646e16137
36 changed files with 75 additions and 22 deletions

View File

@ -0,0 +1,18 @@
# Basic Strings
1. **[Windows Path](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/01-windows-path)**
2. **[Print JSON](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/02-print-json)**
3. **[Raw Concat](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/03-raw-concat)**
4. **[Count the Chars](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/04-count-the-chars)**
5. **[Improved Banger](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/05-improved-banger)**
6. **[ToLowercase](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/06-tolowercase)**
7. **[Trim It](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/07-trim-it)**
8. **[Right Trim It](https://github.com/inancgumus/learngo/tree/master/08-numbers-and-strings/02-strings/exercises/08-right-trim-it)**

View File

@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Windows Path
//
// 1. Change the following program
// 2. It should use a raw string literal instead
//

View File

@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Print JSON
//
// 1. Change the following program
// 2. It should use a raw string literal instead
//

View File

@ -10,7 +10,8 @@ package main
import "fmt"
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Raw Concat
//
// 1. Initialize the name variable
// by getting input from the command line
//

View File

@ -13,7 +13,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Count the Chars
//
// 1. Change the following program to work with unicode
// characters.
//

View File

@ -14,7 +14,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Improved Banger
//
// Change the Banger program the work with Unicode
// characters.
//

View File

@ -8,12 +8,17 @@
package main
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: ToLowercase
//
// 1. Look at the documentation of strings package
// 2. Find a function that changes the letters into lowercase
// 3. Get a value from the command-line
// 4. Print the given value in lowercase letters
//
// HINT
// Check out the strings package from Go online documentation.
// You will find the lowercase function there.
//
// INPUT
// "SHEPARD"
//

View File

@ -12,7 +12,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Trim It
//
// 1. Look at the documentation of strings package
// 2. Find a function that trims the spaces from
// the given string

View File

@ -12,7 +12,8 @@ import (
)
// ---------------------------------------------------------
// EXERCISE
// EXERCISE: Right Trim It
//
// 1. Look at the documentation of strings package
// 2. Find a function that trims the spaces from
// only the right-most part of the given string