Giter Site home page Giter Site logo

go-thainum's Introduction

Go-ThaiNum

Are you conservative? Wanna use Thai numerals everywhere even coding? Good!

This package will allow you to convert Thai numerals string to integer and float numbers type and vice versa.

Don't let that Gen-Z people judge you ๐Ÿ˜ˆ๐Ÿ˜ˆ๐Ÿ˜ˆ

PS. JK pls don't use it. It's suppose to be a joke package even if it's technically usable but please don't.

Functions

Stand-alone functions

  • ToThaiNum

strconv's based functions

  • Atoi
  • ParseFloat
  • FormatInt
  • FormatFloat

fmt print's based functions

  • Print
  • Println
  • Printf
  • SPrintf

All functions is behave the same way as the functions with the same name from standard library except that they also work with Thai numerals (or return Thai numerals string instead of Arabic numerals string).

There are some weird cases where mixed numerals also work (Atoi("1เน‘เน’42เน“") or ParseFloat("1เน‘เน’42เน“".เน‘2) are valid) but I don't care.

For ToThaiNum, as the name suggested, is take a string and replace all Arabic numerals to Thai ones.

Again, THIS IS A JOKE PROJECT (but feel free to add new issue or PR doe)

go-thainum's People

Contributors

onfirebyte avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.