gohelper

package module
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: May 17, 2021 License: MIT Imports: 2 Imported by: 0

README

Build Status GitHub release GitHub go.mod Go version

Coverage Status Maintainability codecov

Go Report Card GoDoc License


tox go-helper

A swiss army knife for golang

Why: After writing the same lines of code over and over again, I came to the conclusion to pack everything into a package ...

Getting started

To get the package, execute:

go get https://github.com/dasrick/go-helper/v2

To import this package, add the following line to your code:

import "github.com/dasrick/go-helper/v2"

For more details, see the API documentation.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONUnmarshalByte

func JSONUnmarshalByte(byteValue []byte, target interface{}) error

JSONUnmarshalByte - target SHOULD be a pointer

func JSONUnmarshalInterface

func JSONUnmarshalInterface(interfaceValue interface{}, target interface{}) error

JSONUnmarshalInterface - target SHOULD be a pointer

func JSONUnmarshalString

func JSONUnmarshalString(stringValue string, target interface{}) error

JSONUnmarshalString - target SHOULD be a pointer

func StringDeduplicate

func StringDeduplicate(ss []string) []string

StringDeduplicate ... deduplicate a slice of strings

func ValidateStruct

func ValidateStruct(target interface{}) error

ValidateStruct ...

Types

This section is empty.

Jump to

Keyboard shortcuts

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