internal

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package internal holds unexported api code

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUnexportedField

func GetUnexportedField(field reflect.Value) interface{}

GetUnexportedField functions returns value of the unexported field

func SetFieldValue

func SetFieldValue(elem reflect.Value, i int, dependency interface{})

SetFieldValue functions injects dependency into a field. It supports exported and unexported fields.

func SetUnexportedField

func SetUnexportedField(field reflect.Value, value interface{})

SetUnexportedField functions sets value of the unexported field

Types

type Profile added in v1.0.6

type Profile uint64

Profile represents enum type

const (
	// Production profile
	Production Profile = iota
	// Testing profile
	Testing
)

func GetProfile

func GetProfile() Profile

GetProfile function returns current profile

Directories

Path Synopsis
Package fake holds test structs
Package fake holds test structs

Jump to

Keyboard shortcuts

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