formatter

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IndonesianNumber

func IndonesianNumber(x interface{}) string

IndonesianNumber format number to indonesian number format (X.XXX) base on Pedoman Umum Ejaan Bahasa Indonesia (PUEBI) III.A.4 https://badanbahasa.kemdikbud.go.id/lamanbahasa/sites/default/files/PUEBI.pdf Example: 1000000 to 1.000.000

func IndonesianRupiah

func IndonesianRupiah(value interface{}) string

IndonesianRupiah format number to RpX.XXX base on Pedoman Umum Ejaan Bahasa Indonesia (PUEBI) II.H.5 https://badanbahasa.kemdikbud.go.id/lamanbahasa/sites/default/files/PUEBI.pdf

func JsonStringForCsv

func JsonStringForCsv(jsonString string) (result string)

JsonStringForCsv cleans and sanitizes a JSON string for CSV. It removes unnecessary characters and ensures the JSON string follows valid formatting. The function reduces cognitive complexity by utilizing helper functions for specific checks and transformations. The cleaned JSON string is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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