Documentation ¶
Index ¶
- Constants
- func CheckErr(err error)
- func ConvertStringToInt(text string) int
- func DeepEqual(x, y interface{}) bool
- func Delete(requestModel RequestModel, result *interface{}) error
- func Get(requestModel RequestModel, result *interface{}) error
- func GetAppConfig() *config.Configuration
- func GetError(status int, messageType string) error
- func HandleError(message string) error
- func Post(requestModel RequestModel, result *interface{}) error
- func Put(requestModel RequestModel, result *interface{}) error
- func Readfile(path string) (string, error)
- func ReplaceLine(path, key, newValue string) error
- func SetAppConfig(data *config.Configuration)
- func SetErrorList(data *config.ErrorDict)
- func Str2IdStrs(str string, splitChar string) ([]string, error)
- func Str2Ids(str string, splitChar string) ([]int, error)
- func WriteFile(path string, json string) error
- type ConventionalMarshaller
- type PathModel
- type RequestModel
- type TokenType
Constants ¶
View Source
const ( Basic = iota Bearer )
const of token type
Variables ¶
This section is empty.
Functions ¶
func ConvertStringToInt ¶
func GetAppConfig ¶
func GetAppConfig() *config.Configuration
func HandleError ¶
func ReplaceLine ¶
func SetAppConfig ¶
func SetAppConfig(data *config.Configuration)
func SetErrorList ¶
Types ¶
type ConventionalMarshaller ¶
type ConventionalMarshaller struct {
Value interface{}
}
func (*ConventionalMarshaller) MarshalJSON ¶
func (c *ConventionalMarshaller) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.