Documentation ¶
Index ¶
- Constants
- func ArrayRemoveAt(a interface{}, i int)
- func BadRequest(id, detail string) error
- func Contains(s []string, e string) bool
- func Forbidden(id, detail string) error
- func Future(sec int, f func())
- func GetLocalIP(addr string) (string, error)
- func Goid() int
- func InternalServerError(id, detail string) error
- func New(id, detail string, code int32) error
- func NotFound(id, detail string) error
- func RandStringBytesMaskImprSrc(n int) string
- func TimeSecondDuration(sec int) time.Duration
- func TrimPrefix(s string, prefix string) string
- func TrimSuffix(s string, suffix string) string
- func Unauthorized(id, detail string) error
- type ApplicationConfig
- type Error
Constants ¶
View Source
const ( VERSION string = "0.0.1" NAME string = "dubbogo" DUBBO string = "dubbo" )
View Source
const (
DUBBOGO_CTX_KEY string = "dubbogo-ctx"
)
Variables ¶
This section is empty.
Functions ¶
func ArrayRemoveAt ¶
func ArrayRemoveAt(a interface{}, i int)
code example:
data := []string{"one", "two", "three"} ArrayRemoveAt(&data, 2) fmt.Println("data len:", len(data), ", data:", data)
data2 := []int32{1, 2, 3} ArrayRemoveAt(&data2, 2) fmt.Println("data2 len:", len(data2), ", data2:", data2)
func BadRequest ¶
func InternalServerError ¶
func TimeSecondDuration ¶
func TrimPrefix ¶
func TrimSuffix ¶
func Unauthorized ¶
Types ¶
type ApplicationConfig ¶
type ApplicationConfig struct { // 组织名(BU或部门) Organization string // 应用名称 Name string // 模块名称 Module string // 模块版本 Version string // 应用负责人 Owner string }
func (*ApplicationConfig) ToString ¶
func (this *ApplicationConfig) ToString() string
Click to show internal directories.
Click to hide internal directories.