Skip to content

Handle map[string]interface{} to create dynamic json for API Golang

Notifications You must be signed in to change notification settings

farhaniupr/convertgo

Repository files navigation

Description

This package use handle problem map[string]interface{} for create dynamic json for API.

Handle Problem

  • map[string]interface to string ✅
  • map[string]interface to int ✅
  • map[string]interface to thounsand string (k, m, etc) ✅
  • map[string]interface to string time ✅
  • map[string]interface to upcase/lowcase string ✅
  • map[string]interface to time different for human ✅
  • custom request http ✅

Thanks for depedency

  • github.com/golang-module/carbon
  • github.com/dustin/go-humanize