cueversion

package
v0.11.1 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 9 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 LanguageVersion added in v0.9.0

func LanguageVersion() string

LanguageVersion returns the CUE language version. This determines the latest version of CUE that is accepted by the module.

func ModuleVersion added in v0.9.0

func ModuleVersion() string

ModuleVersion returns the version of the cuelang.org/go module as best as can reasonably be determined. This is provided for informational and debugging purposes and should not be used to predicate version-specific behavior.

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; vxXXX) Go/go1.22.0 (linux/amd64)

Types

This section is empty.

Jump to

Keyboard shortcuts

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