package
0.0.0-20250312033235-bd4f568112dc
Repository: https://github.com/sourcegraph/src-cli.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

No description provided by the author
NewClient creates a new API client.
NewFlags instantiates a new Flags structure and attaches flags to the given flag set.
NullInt returns a nullable int for use in a GraphQL variable, where -1 is treated as a nil value.
NullString returns a nullable string for use in a GraphQL variable, where "" is treated as a nil value.
StartServer starts the server in a goroutine and returns a stop function.

# Structs

ClientOpts encapsulates the options given to NewClient.
Flags encapsulates the standard flags that should be added to all commands that issue API requests.
GraphQlError wraps a raw JSON error returned from a GraphQL endpoint.
No description provided by the author

# Interfaces

Client instances provide methods to create API requests.
Request instances represent GraphQL requests.

# Type aliases

GraphQlErrors contains one or more GraphQlError instances.