Skip to content

mitchellh/go-finger

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-finger

go-finger is a finger library written in Go. This contains both a client and server implementation.

The finger protocol is an extremely simple TCP protocol. It can be implemented without a library cleanly in only a few dozen lines of code but a library helps ensure correctness and handles RFC-compliant request parsing automatically.

Example

import "github.com/mitchellh/go-finger"

Server

go finger.Serve(finger.HandlerFunc(func(ctx context.Context, w io.Writer, q *finger.Query) {
	w.Write([]byte(fmt.Sprintf("Hello %q", q.Username)))
}))

You can also set more detailed configurations by creating a Server structure directly. The top-level Serve function sets reasonable defaults.

About

Finger protocol library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages