MagicalTux / goro

PHP in Go
BSD 3-Clause "New" or "Revised" License
691 stars 33 forks source link

Implementation of various PHP methods in Go #11

Open MagicalTux opened 5 years ago

MagicalTux commented 5 years ago

Did you see this btw: https://github.com/syyongx/php2go. Could be helpfull

Originally posted by @marcelloh in https://github.com/MagicalTux/goro/issues/2#issuecomment-443260361

MagicalTux commented 5 years ago

Did you see this btw: https://github.com/syyongx/php2go. Could be helpfull

Thanks for the link!

Just checked this, it unfortunately doesn't actually implement PHP methods as they are, for example the "date" method parameters take time.Format formatted string (for example "02/01/2006 15:04:05 PM") instead of what PHP uses (for example "Y-m-d H:i:s").

There are however some interesting methods such as levenshtein() and similar_text() which seems to include the actual calculation and could make sense to be ported over.