skkserv

package module
v0.0.0-...-18a6292 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 14 Imported by: 0

README

= goskkserv

goskkserv is a SKK server written in Go.

== Install

You must install golang to compile goskkserv.

Download golang from bellow, and install it.

https://golang.org/dl/

Type following to install goskkserv

[source, console]
----
$ go get github.com/kechako/goskkserv/cmd/goskkserv
----

== Usage

[source, console]
----
$ goskkserv SKK-JISYO.L
----

Documentation

Index

Constants

View Source
const (
	ClientEnd        = '0'
	ClientRequest    = '1'
	ClientVersion    = '2'
	ClientHost       = '3'
	ClientCompletion = '4'

	ServerError    = '0'
	ServerFound    = '1'
	ServerNotFound = '4'
	ServerFull     = '9'
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Encoding

type Encoding string
const (
	UTF8     Encoding = "utf-8"
	EUCJP    Encoding = "euc-jp"
	ShiftJIS Encoding = "sjis"
)

func ParseEncoding

func ParseEncoding(s string) (Encoding, error)

type Server

type Server struct {
	Dictionary *dict.Dictionary
	Encoding   Encoding
	Logger     log.Logger
	// contains filtered or unexported fields
}

func (*Server) Listen

func (s *Server) Listen(addr string) error

func (*Server) Shutdown

func (s *Server) Shutdown() error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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