Help us shape the future of Go! Take the 2026 Go Developer Survey

gohelper

package module
v1.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2019 License: MIT Imports: 2 Imported by: 0

README

Build Status

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 gopkg.in/dasrick/go-helper.v1

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

import "gopkg.in/dasrick/go-helper.v1"

For more details, see the API documentation.


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func JSONUnmarshalByte added in v1.1.0

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

JSONUnmarshalByte - target SHOULD be a pointer

func JSONUnmarshalInterface added in v1.1.0

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

JSONUnmarshalInterface - target SHOULD be a pointer

func JSONUnmarshalString added in v1.1.0

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

JSONUnmarshalString - target SHOULD be a pointer

func StringDeduplicate added in v1.3.0

func StringDeduplicate(s []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