package
1.1.3
Repository: https://github.com/go-spring/spring-base.git
Documentation: pkg.go.dev

# Functions

Contract contracts `filename` and replace the excessive part using `...`.
Error returns an error with the file and line.
Errorf returns an error with the file and line.
FileLine returns a function's name, file name and line number.
HasReceiver returns whether the function has a receiver.
Indirect returns its element type when t is a pointer type.
IsBeanReceiver returns whether the `t` is a bean receiver, a bean receiver can be a bean, a map or slice whose elements are beans.
IsBeanType returns whether `t` is a bean type.
IsConstructor returns whether `t` is a constructor type.
IsContextType returns whether `t` is context.Context type.
IsConverter returns whether `t` is a converter type.
IsErrorType returns whether `t` is error type.
IsFuncType returns whether `t` is func type.
IsPrimitiveValueType returns whether `t` is the primitive value type which only is int, unit, float, bool, string and complex.
IsStructPtr returns whether it is the pointer type of structure.
IsValueType returns whether the input type is the primitive value type and their composite type including array, slice, map and struct, such as []int, [3]string, []string, map[int]int, map[string]string, etc.
LocalIPv4 returns the IPv4 address of the local computer.
MD5 returns the MD5 checksum in hexadecimal encoding of the src.
NewMockBeanDefinition creates a new mock instance.
NewMockBeanSelector creates a new mock instance.
NewMockConverter creates a new mock instance.
NewPanicCond returns a panic condition.
Panic returns a panic condition that throws an error.
Panicf returns a panic condition that throws a formatted error.
PatchValue makes an unexported field can be assignable.
ReadDirNames reads the directory named by dirname and returns an unsorted list of directory entries.
ReturnNothing returns whether the function has no return value.
ReturnOnlyError returns whether the function returns only error value.
SafeCloseChan closes the channel safely.
TypeName returns a fully qualified name consisting of package path and type name.
Wrap returns an error with the file and line.
Wrapf returns an error with the file and line.

# Variables

ForbiddenMethod throws this error when calling a method is prohibited.
UnimplementedMethod throws this error when calling an unimplemented method.
No description provided by the author

# Structs

MockBeanDefinition is a mock of BeanDefinition interface.
MockBeanDefinitionMockRecorder is the mock recorder for MockBeanDefinition.
MockBeanSelector is a mock of BeanSelector interface.
MockBeanSelectorMockRecorder is the mock recorder for MockBeanSelector.
MockConverter is a mock of Converter interface.
MockConverterMockRecorder is the mock recorder for MockConverter.
PanicCond panic condition.

# Interfaces

A BeanDefinition describes a bean whose lifecycle is managed by IoC container.
A BeanSelector can be the ID of a bean, a `reflect.Type`, a pointer such as `(*error)(nil)`, or a BeanDefinition value.
Converter converts string value into user-defined value.