diff --git a/.travis.yml b/.travis.yml index 0caa9d2..dbc0f72 100644 --- a/.travis.yml +++ b/.travis.yml @@ -3,5 +3,5 @@ before_install: - go get golang.org/x/tools/cmd/cover - go get github.com/stretchr/testify go: - - "1.13" + - "1.14" script: make test diff --git a/README.rst b/README.rst index 2c3dfb7..0321864 100644 --- a/README.rst +++ b/README.rst @@ -375,11 +375,12 @@ Retrieves the value at path of struct(s). funk.GetOrElse -......... +.............. Retrieves the value of the pointer or default. .. code-block:: go + str := "hello world" GetOrElse(&str, "foobar") // string{"hello world"} GetOrElse(str, "foobar") // string{"hello world"} @@ -539,7 +540,7 @@ see also, typesafe implementations: ShuffleInt_, ShuffleInt64_, ShuffleFloat32_, .. _ShuffleString: https://godoc.org/github.com/thoas/go-funk#ShuffleString funk.Subtract -............ +............. Returns the subtraction between two collections. It preserve order.