Skip to content

Instantly share code, notes, and snippets.

@ykyuen
Created January 22, 2018 02:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ykyuen/28d1d93cfe4ddfd5e3a22c93939ccf64 to your computer and use it in GitHub Desktop.
Save ykyuen/28d1d93cfe4ddfd5e3a22c93939ccf64 to your computer and use it in GitHub Desktop.
manage-go-dependencies-using-dep-01
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