mirror of
https://github.com/zhufuyi/sponge.git
synced 2025-09-26 20:51:14 +08:00
22 lines
317 B
Go
22 lines
317 B
Go
package docs
|
|
|
|
import (
|
|
"embed"
|
|
"fmt"
|
|
)
|
|
|
|
//go:embed apis.swagger.json
|
|
var jsonFile embed.FS
|
|
|
|
// ApiDocs swagger json file content
|
|
var ApiDocs = []byte(``)
|
|
|
|
func init() {
|
|
data, err := jsonFile.ReadFile("apis.swagger.json")
|
|
if err != nil {
|
|
fmt.Printf("\nReadFile error: %v\n\n", err)
|
|
return
|
|
}
|
|
ApiDocs = data
|
|
}
|