getproxies

package module
v0.0.0-...-5b1162a Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2022 License: MIT Imports: 5 Imported by: 1

README

GetProxies

Get system proxy from Env|Registry|SystemConfiguration

自动获取本地系统代理。

Installation

go get -u github.com/QIN2DIM/getproxies

Example

package main

import "github.com/QIN2DIM/getproxies"

func main() {
    proxies := GetProxies()
    fmt.Println(proxies["http"])
    // http://127.0.0.1:10809
}

Documentation

Index

Constants

View Source
const (
	Windows = "windows"
	Darwin  = "darwin"
	Linux   = "linux"
)

Variables

This section is empty.

Functions

func GetProxies

func GetProxies() map[string]string

Types

This section is empty.

Jump to

Keyboard shortcuts

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