mirror of https://github.com/hslam/ftok.git
e3bf32b2cf | ||
---|---|---|
.gitignore | ||
LICENSE | ||
README.md | ||
ftok.go | ||
ftok_test.go |
README.md
ftok
Package ftok provides a way to generate a System V IPC key, suitable for use with msgget, semget, or shmget.
Get started
Install
go get github.com/hslam/ftok
Import
import "github.com/hslam/ftok"
Usage
Example
package main
import (
"fmt"
"github.com/hslam/ftok"
)
func main() {
key_t, err := ftok.Ftok("/tmp", 0x22)
if err != nil {
return
}
fmt.Printf("%x", key_t)
}
License
This package is licensed under a MIT license (Copyright (c) 2020 Meng Huang)
Author
ftok was written by Meng Huang.