Help us shape the future of Go! Take the 2026 Go Developer Survey

tools

package
v2.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

copied from upstream to bypass internal package https://github.com/gophercloud/gophercloud/blob/v1.7.0/internal/acceptance/tools/tools.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrintResource

func PrintResource(t *testing.T, resource any)

copied from https://github.com/gophercloud/gophercloud/v2/blob/v1.7.0/github.com/sapcc/gophercloud-sapcc/v2/internal/acceptance/tools/tools.go#L77-L81 PrintResource returns a resource as a readable structure

func RandomString

func RandomString(prefix string, n int) string

copied from https://github.com/gophercloud/gophercloud/v2/blob/v1.7.0/github.com/sapcc/gophercloud-sapcc/v2/internal/acceptance/tools/tools.go#L48-L60 RandomString generates a string of given length, but random content. All content will be within the ASCII graphic character set. (Implementation from Even Shaw's contribution on http://stackoverflow.com/questions/12771930/what-is-the-fastest-way-to-generate-a-long-random-string-in-go).

Types

This section is empty.

Jump to

Keyboard shortcuts

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