tools

package
Version: v0.6.16 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ContextValue added in v0.6.2

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

ContextValue gRPC日志获取context value

func GoFmt added in v0.6.11

func GoFmt(buf []byte) []byte

GoFmt 格式化代码

func GrpcHeaderValue

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

GrpcHeaderValue 获取context value

func ToSliceStringMap added in v0.6.3

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

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

Types

This section is empty.

Source Files

Jump to

Keyboard shortcuts

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