pkg

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ProjectDirectory = filepath.Dir(filepath.Dir(filePath))
)

Functions

func CheckPasswordHash

func CheckPasswordHash(password, hash string) bool

func HashPassword

func HashPassword(password string) (string, error)

func MustHashPassword

func MustHashPassword(password string) string

func ParseGraphQLData

func ParseGraphQLData(src *graphql.Result, dst any, key string) error

func ParseInto

func ParseInto(src any, dst any) error

func ParseProtoAnyInto added in v0.0.2

func ParseProtoAnyInto(src *anypb.Any, dst any) error

func ProtoAnyToMap added in v0.0.2

func ProtoAnyToMap(in *anypb.Any) (map[string]interface{}, error)

func ToProtoAny added in v0.0.2

func ToProtoAny(in any) (*anypb.Any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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