redoc

package module
v0.0.0-...-7e03c3a Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: MIT Imports: 10 Imported by: 2 modules, 1 package

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

Fiber redoc

Build Status

⚙ Installation

go get -u github.com/eininst/fiber-middleware-redoc

⚡ Quickstart

package main

import (
	redoc "github.com/eininst/fiber-middleware-redoc"
	"github.com/gofiber/fiber/v2"
)

func main() {
    app := fiber.New()

    app.Get("/redoc/*", redoc.New("examples/swagger.json"))

    app.Listen(":8080")
}

visit http://127.0.0.1:8080/redoc

Redoc logo

See examples

License

MIT

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(docSrc string, config ...Config) fiber.Handler

Types

type Config

type Config struct {
	Theme  string
	JsCDN  string
	CssCDN string
}
type XLogo struct {
	Url             string `json:"url"`
	BackgroundColor string `json:"backgroundColor"`
	AltText         string `json:"altText"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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