Go to file
hslam a0c8cf24ad update ftok example 2020-11-27 17:16:02 +08:00
.gitignore Initial commit 2020-11-27 16:46:10 +08:00
LICENSE update LICENSE 2020-11-27 16:48:29 +08:00
README.md update ftok example 2020-11-27 17:16:02 +08:00
ftok.go first commit 2020-11-27 16:52:35 +08:00
ftok_test.go add ftok test 2020-11-27 17:09:01 +08:00

README.md

ftok

PkgGoDev Go Report Card LICENSE

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, 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.