kkconv

package module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 4 Imported by: 3

README

kkconv -- Hiragana-Katakana Conversion

check vulns lint status GitHub license GitHub release

This package is required Go 1.16 or later.

Migrated repository to github.com/goark/kkconv

Import package

import "github.com/goark/kkconv"

Usage

import (
    "fmt"

    "github.com/goark/kkconv"
)

func ExampleHiragana() {
    txt := "こんにちは セカイ"
    fmt.Println(kkconv.Hiragana(txt, true))
    // Output:
    // こんにちは せかい
}

func ExampleKatakana() {
    txt := "こんにちは セカイ"
    fmt.Println(kkconv.Katakana(txt, true))
    // Output:
    // コンニチハ セカイ
}

Modules Requirement Graph

dependency.png

Documentation

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Chokuon

func Chokuon(txt string, foldFlag bool) string

Chokuon function converts youon (拗音) to chokuon (直音).

func Hiragana

func Hiragana(txt string, foldFlag bool) string

Hiragana function converts hiragana character in the string.

Example
package main

import (
	"fmt"

	"github.com/goark/kkconv"
)

func main() {
	txt := "こんにちは セカイ"
	fmt.Println(kkconv.Hiragana(txt, true))
}
Output:

こんにちは せかい

func Katakana

func Katakana(txt string, foldFlag bool) string

Hiragana function converts katakana character in the string.

Example
package main

import (
	"fmt"

	"github.com/goark/kkconv"
)

func main() {
	txt := "こんにちは セカイ"
	fmt.Println(kkconv.Katakana(txt, true))
}
Output:

コンニチハ セカイ

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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