config

package
v0.0.0-...-96490c8 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config @Link https://gitee.com/linngc/center.gf @Copyright Copyright (c) 2022 center CLI @Author linngc @License

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodeTo

func DecodeTo(b []byte)

Types

type GolangConfig

type GolangConfig struct {
	Cache   string              `` /* 176-byte string literal not displayed */
	Central []string            `yaml:"central" default:"[\"https://goproxy.io/\"]"  dc:"Mirrors中央仓库"`
	Mirror  []string            `` /* 172-byte string literal not displayed */
	Sumdb   map[string][]string `yaml:"sumdb" dc:"sum校验服务器地址,默认使用配置的默认值"`
}

func GetConfig

func GetConfig() *GolangConfig

GetConfig 获取golang配置的资源文件信息

Jump to

Keyboard shortcuts

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