cueversion

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package cueversion provides access to the version of the cuelang.org/go module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTransport

func NewTransport(clientType string, next http.RoundTripper) http.RoundTripper

NewTransport returns an http.RoundTripper implementation that wraps next and adds a "User-Agent" header to every HTTP request containing the result of UserAgent(clientType). If next is nil, http.DefaultTransport will be used.

func UserAgent

func UserAgent(clientType string) string

UserAgent returns a string suitable for adding as the User-Agent header in an HTTP agent. The clientType argument specifies how CUE is being used: if this is empty it defaults to "cuelang.org/go".

Example:

Cue/v0.8.0 (cuelang.org/go) Go/go1.22.0 (linux/amd64)

func Version

func Version() string

Version returns the version of the cuelang.org/go module as best as can reasonably be determined. The result is always a valid Go semver version.

Types

This section is empty.

Jump to

Keyboard shortcuts

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