utils

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Aug 3, 2022 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean added in v0.0.6

func Clean(field, content string) string

func JsonMarshal

func JsonMarshal(swagger *openapi3.Swagger) ([]byte, error)

func Marshal

func Marshal(fileName string, swagger *openapi3.Swagger) ([]byte, error)

func PreviewContent added in v0.0.6

func PreviewContent(content string, num int) string

func YamlMarshal

func YamlMarshal(swagger *openapi3.Swagger) ([]byte, error)

Types

type MarshalType

type MarshalType string
var Json MarshalType = "json"
var Yaml MarshalType = "yaml"

func FindEx

func FindEx(fileName string) MarshalType

Jump to

Keyboard shortcuts

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