timonmasberg / address-formatter Goto Github PK
View Code? Open in Web Editor NEWUniversal international address formatter in Go
License: MIT License
Universal international address formatter in Go
License: MIT License
We should have a benchmark test to compare this with other address formatters
Currently, the test workflow fails due to missing dependencies. Locally, the command works.
go: github.com/cbroglie/[email protected] requires
github.com/spf13/[email protected]: missing go.sum entry; to add it:
go mod download github.com/spf13/cobra
Error: Process completed with exit code 1.
This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.
These updates have all been created already. Click a checkbox below to force a retry/rebase of any.
.github/workflows/test.yml
actions/checkout v3
actions/setup-go v4
go.mod
go 1.18
github.com/cbroglie/mustache v1.4.0
github.com/stretchr/testify v1.7.0
gopkg.in/yaml.v3 v3.0.1
Heya,
Looking though the code today I noticed that the calls to regexp.MustCompile()
are inline.
Compiling the regular expressions represents a significant cost of a match, this is why the compile
and match/replace
calls are seperated in Go.
Moving the compile step up into the package scope (so they are run once on init) will result in a performance benefit, especially for functions like getRenderInput
which are called often.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.