Skip to content

clukawski/gullwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gullwidth

Go Reference

Create fullwidth text from ASCII input. For AESTHETIC purposes ONLY.

Usage

CLI

Building

git clone https://github.com/clukawski/gullwidth
cd gullwidth/cmd/gullwidth
go build

Creating fullwidth text

./gullwidth your text here
your text here

Library

See cmd/gullwidth/main.go:

package main

import (
	"fmt"
	"log"
	"os"
	"strings"

	"github.com/clukawski/gullwidth"
)

func main() {
	input := strings.TrimSpace(strings.Join(os.Args[1:], " "))
	fullwidth, err := gullwidth.Fullwidth(input)
	if err != nil {
		log.Fatal(err)
	}
	fmt.Println(fullwidth)
}

About

Go fullwidth text conversion library and CLI

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages