mbconv

package module
v0.0.0-...-496e9e8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 26, 2016 License: MIT Imports: 3 Imported by: 0

README

mbconv - multibyte converter for golang

Build Status codecov Go Report Card

Installation

go get -u -d github.com/kaneshin/mbconv

Usage

Example
package main

import (
	"fmt"

	"github.com/kaneshin/mbconv"
)

func main() {
	fmt.Println(mbconv.HiraganaToKatakana("ぁあぃいぅうぇえぉおかがきぎく"))
	// => ァアィイゥウェエォオカガキギク

	fmt.Println(mbconv.KatakanaToHiragana("ァアィイゥウェエォオカガキギク"))
	// => ぁあぃいぅうぇえぉおかがきぎく

	fmt.Println(mbconv.HalfWidthToFullWidth("Hello World"))
	// => Hello World

	fmt.Println(mbconv.FullWidthToHalfWidth("Hello World"))
	// => Hello World
}

License

The MIT License (MIT)

Author

Shintaro Kaneko kaneshin0120@gmail.com

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FullWidthToHalfWidth

func FullWidthToHalfWidth(str string) string

FullWidthToHalfWidth converts string.

func HalfWidthToFullWidth

func HalfWidthToFullWidth(str string) string

HalfWidthToFullWidth converts string.

func HiraganaToKatakana

func HiraganaToKatakana(str string) string

HiraganaToKatakana converts string.

func KatakanaToHiragana

func KatakanaToHiragana(str string) string

KatakanaToHiragana converts string.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL