apiutil

package
v0.0.0-...-e47062a Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2025 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Overview

Package apiutil provides utilities for the Spectro Cloud API client.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Base64DecodeString

func Base64DecodeString(s string) ([]byte, error)

Base64DecodeString decodes a base64-encoded string.

func Is404

func Is404(err error) bool

Is404 returns a boolean indicating whether an error is a 404 error.

func IsBase64

func IsBase64(s string) bool

IsBase64 returns a boolean indicating whether a string is base64 encoded.

func Ptr

func Ptr[T any](v T) *T

Ptr returns a pointer to any value.

func StringHash

func StringHash(name string) string

StringHash hashes a string using FNV-1a.

func ToV1ErrorObj

func ToV1ErrorObj(err any) *models.V1Error

ToV1ErrorObj converts an error to a V1Error object.

Types

This section is empty.

Jump to

Keyboard shortcuts

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