openapi_go_httpclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2026 License: MIT Imports: 1 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

{{- /*gotype: github.com/primelib/primecodegen/pkg/openapi/openapigenerator.SupportOnceTemplate*/ -}}
# {{ .Metadata.DisplayName }}

A go http client library for {{ .Metadata.DisplayName }}.

## Installation

```
go get -u {{ .Metadata.ArtifactId }}
```

## Usage

TODO

{{ if .Metadata.LicenseName }}
## License

This project is licensed under the [{{ .Metadata.LicenseName }}]({{ .Metadata.LicenseUrl }}) license.
{{- end }}

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Template = templateapi.Config{
	ID:          "openapi-go-httpclient",
	Description: "OpenAPI Client for Go",
	Files: []templateapi.File{
		{
			Description:     "client",
			SourceTemplate:  "client.gohtml",
			Snippets:        templateapi.DefaultSnippets,
			TargetDirectory: "",
			TargetFileName:  "client.go",
			Type:            templateapi.TypeAPIOnce,
			Kind:            templateapi.KindAPI,
		},
		{
			Description:     "service per tag with all operations",
			SourceTemplate:  "service.gohtml",
			Snippets:        templateapi.DefaultSnippets,
			TargetDirectory: "",
			TargetFileName:  "service-{{ .Service.Name }}.go",
			Type:            templateapi.TypeAPIEach,
			Kind:            templateapi.KindAPI,
		},
		{
			Description:     "operation",
			SourceTemplate:  "operation.gohtml",
			Snippets:        templateapi.DefaultSnippets,
			TargetDirectory: "pkgs/operations",
			TargetFileName:  "{{ .Name }}.go",
			Type:            templateapi.TypeOperationEach,
			Kind:            templateapi.KindAPI,
		},

		{
			Description:     "model file",
			SourceTemplate:  "model.gohtml",
			Snippets:        templateapi.DefaultSnippets,
			TargetDirectory: "pkgs/models",
			TargetFileName:  "{{ .Name }}.go",
			Type:            templateapi.TypeModelEach,
			Kind:            templateapi.KindModel,
		},
		{
			Description:     "model file",
			SourceTemplate:  "enum.gohtml",
			Snippets:        templateapi.DefaultSnippets,
			TargetDirectory: "pkgs/enums",
			TargetFileName:  "{{ .Name }}.go",
			Type:            templateapi.TypeEnumEach,
			Kind:            templateapi.KindModel,
		},

		{
			Description:    "README.md",
			SourceTemplate: "readme.gohtml",
			Snippets:       templateapi.DefaultSnippets,
			TargetFileName: "README.md",
			Type:           templateapi.TypeSupportOnce,
			Kind:           templateapi.KindDocumentation,
		},

		{
			Description:    "go.mod",
			SourceTemplate: "gomod.gohtml",
			Snippets:       templateapi.DefaultSnippets,
			TargetFileName: "go.mod",
			Type:           templateapi.TypeSupportOnce,
			Kind:           templateapi.KindBuildSystem,
		},
		{
			Description:    "go.sum",
			SourceTemplate: "gosum.gohtml",
			Snippets:       templateapi.DefaultSnippets,
			TargetFileName: "go.sum",
			Type:           templateapi.TypeSupportOnce,
			Kind:           templateapi.KindBuildSystem,
		},
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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