utils

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RequestParam

func RequestParam(urlStr, param string) (string, error)

RequestParam get a specific request parameter string.

Eg Get `G-Key=e2c32ed0807ce086083281f131&G-Time=20240803130551`
	from `http://localhost:7789/api/v1/uploads?G-Key=e2c32ed0807ce086083281f131&G-Time=20240803130551`

func RequestPath

func RequestPath(urlStr string) (string, error)

RequestPath parse request path string.

Eg Get `/news/Avatar2023-jcer.jpeg`
		from `https://902-local.s3.us-west-1.amazonaws.com/news/Avatar2023-jcer.jpeg`
	Or `/storage/tmp/63e85ba1.jpeg`
		from `https://www.dancefitvn.com/storage/tmp/63e85ba1.jpeg`

Types

This section is empty.

Jump to

Keyboard shortcuts

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