tools

package
v1.1.6 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextValue

func ContextValue(ctx context.Context, key string) string

ContextValue gRPC日志获取context value

func GoFmt

func GoFmt(buf []byte) []byte

GoFmt 格式化代码

func GrpcHeaderValue

func GrpcHeaderValue(ctx context.Context, key string) string

GrpcHeaderValue 获取context value

func ToSliceStringMap

func ToSliceStringMap(i interface{}) []map[string]interface{}

ToSliceStringMap casts an empty interface to []map[string]interface{} ignoring error

Types

This section is empty.

Jump to

Keyboard shortcuts

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