util

package
v0.0.0-...-a14a4d2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndexString

func IndexString(strs []string, x string) int

IndexString returns the index of X in a sorts string array If the array is not sorted, sort it.

func ParseNAndLastParameters

func ParseNAndLastParameters(r *http.Request) (*int, string, error)

ParseNAndLastParameters parse the n and last parameters from the query of the http request

func SendListTagsResponse

func SendListTagsResponse(w http.ResponseWriter, r *http.Request, tags []string)

SendListTagsResponse sends the response for list tags API

func SetLinkHeader

func SetLinkHeader(origURL string, n int, last string) (string, error)

SetLinkHeader ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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