From 957140604fc27a383a2cb2fc5428348000e9db2f Mon Sep 17 00:00:00 2001 From: Bradley Falzon Date: Sat, 3 Jun 2017 11:58:30 +0930 Subject: [PATCH] Fix README example Add should be Append Thanks @kaihendry Fixes #87. --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 24a0ffad..f1065fa4 100644 --- a/README.md +++ b/README.md @@ -73,7 +73,7 @@ You may use API methods to fill structures or create them manually to generate p panic(fmt.Sprintf("Creating of media playlist failed: %s", e)) } for i := 0; i < 5; i++ { - e = p.Add(fmt.Sprintf("test%d.ts", i), 6.0, "") + e = p.Append(fmt.Sprintf("test%d.ts", i), 6.0, "") if e != nil { panic(fmt.Sprintf("Add segment #%d to a media playlist failed: %s", i, e)) }