url

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPath

func AddPath(path string) wrapper.CallWrapper

AddPath add Request path

func Path

func Path(path string) wrapper.CallWrapper

Path set request raw url

func URL

func URL(rawURL string) wrapper.CallWrapper

URL set request raw url 建议在client使用URL方法,在Req使用AddPath/Path方法。好处: - 不同运行环境时api的域名不同时,方便根据环境进行切换调用的接口地址 - 当api地址发生变化时可以容易的一次性更改api的地址

Types

This section is empty.

Jump to

Keyboard shortcuts

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