Created
January 22, 2018 02:53
-
-
Save ykyuen/28d1d93cfe4ddfd5e3a22c93939ccf64 to your computer and use it in GitHub Desktop.
manage-go-dependencies-using-dep-01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import humanize "github.com/dustin/go-humanize" | |
import "fmt" | |
func main() { | |
fmt.Println("hello world") | |
fmt.Printf("That file is %s.\n", humanize.Bytes(82854982)) // That file is 83 MB. | |
fmt.Printf("You're my %s best friend.\n", humanize.Ordinal(193)) // You are my 193rd best friend. | |
fmt.Printf("You owe $%s.\n", humanize.Comma(6582491)) // You owe $6,582,491. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment