utils

package module
v0.0.0-...-9713768 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: MIT Imports: 16 Imported by: ? modules, 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

utils

utils

Abandoned modules

Documentation

Index

Constants

This section is empty.

Variables

ProviderSet .

Functions

func CheckToken

func CheckToken(key string) bool

CheckToken auth token

func Convert

func Convert(input string) ([]byte, error)

Convert shapefile to geojson currently not support Multi Geometry

func GetToken

func GetToken(identity string) (*string, error)

GetToken make Token

func If

func If[T any](condition bool, trueVal, falseVal T) T

If 三元表达式的写法 例如: max := If(a > b, a, b).(int)

func JWTAuthMiddleware

func JWTAuthMiddleware() func(c *gin.Context)

JWTAuthMiddleware MiddleWare

func NewCorn

func NewCorn() *cron.Cron

NewCorn .

func ReadPDF

func ReadPDF(path string) (string, error)

func ReadPdf2

func ReadPdf2(path string) (string, error)

func ReadShp

func ReadShp(path string) (string, error)

func UploadHandler

func UploadHandler(c *gin.Context)

UploadHandler POST Upload images files 单文件上传至upload文件夹中

func UploadsHandler

func UploadsHandler(c *gin.Context)

UploadsHandler UploadHandler POST Upload temp files 多文件上传至tmp文件目录中

Types

This section is empty.

Directories

Path Synopsis
db
Package scaffold .
Package scaffold .

Jump to

Keyboard shortcuts

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