String length: Difference between revisions
→go Byte Length: use same format for all entries
Jazzedpineda (talk | contribs) (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
28 𝔘𝔫𝔦𝔠𝔬𝔡𝔢
</pre>
====Character Length====
<syntaxhighlight lang="go">package main
|