Skip to content

Instantly share code, notes, and snippets.

@tgfjt
Created December 28, 2019 12:46
Show Gist options
  • Save tgfjt/3ca363b211b82e214c2bc48738082ea2 to your computer and use it in GitHub Desktop.
Save tgfjt/3ca363b211b82e214c2bc48738082ea2 to your computer and use it in GitHub Desktop.
/*
PadZero returns "043737" when get 43737
https://www.aozora.gr.jp/cards/000081/card43737.html
*/
func PadZero(cardID int) string {
return fmt.Sprintf("%06d", cardID)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment