Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,16 +1,9 @@
// Copyright © 2018 Inanc Gumus
// Learn Go Programming Course
// License: https://creativecommons.org/licenses/by-nc-sa/4.0/
//
// For more tutorials : https://learngoprogramming.com
// In-person training : https://www.linkedin.com/in/inancgumus/
// Follow me on twitter: https://twitter.com/inancgumus

package main

import (
"fmt"
"os"
"unicode/utf8"
)

// ---------------------------------------------------------
Expand All @@ -33,6 +26,6 @@ func main() {
//
// When you run it with "İNANÇ", it should return 5 not 7.

length := len(os.Args[1])
fmt.Println(length)
length := utf8.RuneCountInString(os.Args[1])
fmt.Println("The length of characters in this string is",length)
}