uddi

package module
v1.1.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 18, 2019 License: MIT Imports: 4 Imported by: 0

README

uddi

Go Report Card Build Status Maintainability Test Coverage

generates pseudo uddi tokens

Documentation

Overview

Package uddi creates pseudo UDDI tokens.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create() string

Create generates a UDDI exadedimal string.

Example
rand.Seed(int64(99))
t := Create()
fmt.Println(t)
Output:

75ed1842-49e9-bc19-675e-4d1f766213da

func CreateCtx

func CreateCtx(ctx context.Context) (string, error)

CreateCtx generates a UDDI exadedimal string.

Example
rand.Seed(int64(99))
ctx, cancel := context.WithTimeout(context.Background(), time.Second)
defer cancel()
time.Sleep(2 * time.Second)
t, err := CreateCtx(ctx)
if err != nil {
	fmt.Println(err)
}
fmt.Println(t)
Output:

impossible to generate UDDI: context deadline exceeded

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL