templates

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Package templates contains text of service and model templates for generating docusign api packages

Index

Constants

View Source
const Model = `// Copyright 2022 James Cote
// All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.

// Code generated by gen-esign; DO NOT EDIT. {{$defMap := .DefMap}}{{$fldOverrides := .FldOverrides}}
{{if .IsPackage}}
// Package model provides definitions for all input
// and output parameters types found in DocuSign's 
// OpenAPI (swagger) file.
//
// Api documentation may be found at:
// https://developers.docusign.com/docs/{{$docPrefix := .DocPrefix}}{{$docPrefix}}reference
package {{.ModelPackage}} // import "github.com/jfcote87/esign/{{.ModelPackagePath}}{{else}}package {{.ModelPackage}}
{{end}}{{if .ModelImports}}

import ({{range .ModelImports}}
    "{{.}}"{{end}}
){{end}}
{{if .Scopes}}{{.Scopes}}{{end}}
{{ range .Definitions }}{{if len .CommentLines}}{{ range .CommentLines}}
// {{.}}{{end}}{{else}}// {{.StructName}} not described in definition file{{end}}
type {{.StructName}} struct { {{range .StructFields $defMap $fldOverrides}}
    {{range .Comments}}// {{.}}
    {{end}}{{.Name}}{{if .Type}} {{.Type}}{{end}}{{if .JSON}} ` + "`json:\"{{.JSON}},omitempty\"`" + `{{end}}{{end }}
}
{{ end }}
{{.CustomCode}}`

Model is the default template for defining packages input and output structures

View Source
const Service = `` /* 3272-byte string literal not displayed */

Service is the default template for constructing service package files

Variables

This section is empty.

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