https://github.com/hslam/ftok
Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
https://github.com/hslam/ftok
ftok go golang ipc ipc-key system-v unix
Last synced: 20 days ago
JSON representation
Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
- Host: GitHub
- URL: https://github.com/hslam/ftok
- Owner: hslam
- License: mit
- Created: 2020-11-27T08:46:09.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2021-01-16T18:43:50.000Z (over 4 years ago)
- Last Synced: 2025-03-30T11:32:40.144Z (about 2 months ago)
- Topics: ftok, go, golang, ipc, ipc-key, system-v, unix
- Language: Go
- Homepage:
- Size: 7.81 KB
- Stars: 4
- Watchers: 1
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-golang-repositories - ftok
README
# ftok
[](https://pkg.go.dev/github.com/hslam/ftok)
[](https://github.com/hslam/ftok/actions)
[](https://codecov.io/gh/hslam/ftok)
[](https://goreportcard.com/report/github.com/hslam/ftok)
[](https://github.com/hslam/ftok/blob/master/LICENSE)Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
## Get started
### Install
```
go get github.com/hslam/ftok
```
### Import
```
import "github.com/hslam/ftok"
```
### Usage
#### Example
```go
package mainimport (
"fmt"
"github.com/hslam/ftok"
)func main() {
key, err := ftok.Ftok("/tmp", 0x22)
if err != nil {
return
}
fmt.Printf("%x", key)
}
```### License
This package is licensed under a MIT license (Copyright (c) 2020 Meng Huang)### Author
ftok was written by Meng Huang.