Advertisement
Guest User

Untitled

a guest
Sep 19th, 2019
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4. "fmt"
  5. "unicode/utf8"
  6. )
  7.  
  8. func main() {
  9.  
  10. input := ";"
  11. fmt.Println(ProportionalForm2FullwidthForm(input))
  12.  
  13. }
  14.  
  15. func ProportionalForm2FullWidthForm(s string) string {
  16. r, _ := utf8.DecodeRuneInString(s)
  17. r += 65248
  18. return string(r)
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement