String length: Difference between revisions

→‎go Byte Length: use same format for all entries
(Added EasyLang implementation)
(→‎go Byte Length: use same format for all entries)
Line 1,534:
j := "J̲o̲s̲é̲"
fmt.Printf("%d %s % x\n", len(m), m, m)
fmt.Printf("%d %s % x\n", len(u), u, u)
fmt.Printf("%d %s % x\n", len(j), j, j)
}</syntaxhighlight>
Output:
<pre>
7 møøse  6d c3 b8 c3 b8 73 65
28 𝔘𝔫𝔦𝔠𝔬𝔡𝔢 f09d9498f09d94abf09d94a6f09d94a0f09d94acf09d94a1f09d94a2f0 9d 94 98 f0 9d 94 ab f0 9d 94 a6 f0 9d 94 a0 f0 9d 94 ac f0 9d 94 a1 f0 9d 94 a2
1413 J̲o̲s̲é̲  4a cc b2 6f cc b2 73 cc b2 65 ccc3 81a9 cc b2
</pre>
 
====Character Length====
<syntaxhighlight lang="go">package main