Package ftok provides a way to generate a System V IPC key, suitable for using with msgget, semget, or shmget.
go get github.com/hslam/ftok
import "github.com/hslam/ftok"
package main
import (
"fmt"
"github.com/hslam/ftok"
)
func main() {
key, err := ftok.Ftok("/tmp", 0x22)
if err != nil {
return
}
fmt.Printf("%x", key)
}
This package is licensed under a MIT license (Copyright (c) 2020 Meng Huang)
ftok was written by Meng Huang.