SHARE
TWEET

Untitled

a guest Sep 19th, 2019 89 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top