ARO-RP/vendor/github.com/gobuffalo/flect
Mikalai Radchuk 5ab9a3e095
Vendoring: update Hive to the latest version (#2263)
* Updates vendoring docs and scripts

* Makes use of `go mod tidy -compat=1.17`:
  we do not have to be compatible with prior versions.
  Saves a bit of headache when dealing with dependencies.
* Makes `hack/update-go-module-dependencies.sh` ignore `github.com/openshift/hive`:
  it is not part of OCP dependencies and is not following `release-4.Y` branching.
  We want to update it separately.

* Vendoring: update Hive to the latest version

* make generate
2022-07-19 13:44:23 -04:00
..
.gitignore vendor 2020-07-28 10:51:14 +01:00
.gometalinter.json vendor 2020-07-28 10:51:14 +01:00
LICENSE vendor 2020-07-28 10:51:14 +01:00
Makefile vendor 2020-07-28 10:51:14 +01:00
README.md vendor 2020-07-28 10:51:14 +01:00
SHOULDERS.md vendor 2020-07-28 10:51:14 +01:00
acronyms.go vendor 2020-07-28 10:51:14 +01:00
camelize.go Vendoring: update Hive to the latest version (#2263) 2022-07-19 13:44:23 -04:00
capitalize.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
custom_data.go vendor 2020-07-28 10:51:14 +01:00
dasherize.go vendor 2020-07-28 10:51:14 +01:00
flect.go vendor 2020-07-28 10:51:14 +01:00
humanize.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
ident.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
lower_upper.go vendor 2020-07-28 10:51:14 +01:00
ordinalize.go vendor 2020-07-28 10:51:14 +01:00
pascalize.go Vendoring: update Hive to the latest version (#2263) 2022-07-19 13:44:23 -04:00
plural_rules.go Vendoring: update Hive to the latest version (#2263) 2022-07-19 13:44:23 -04:00
pluralize.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
rule.go vendor 2020-07-28 10:51:14 +01:00
singular_rules.go Vendoring: update Hive to the latest version (#2263) 2022-07-19 13:44:23 -04:00
singularize.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
titleize.go vendor 2020-07-28 10:51:14 +01:00
underscore.go go get "sigs.k8s.io/controller-tools@v0.5.0" 2021-04-01 13:18:17 +02:00
version.go vendor 2020-07-28 10:51:14 +01:00

README.md

Flect

GoDoc CI Go Report Card

This is a new inflection engine to replace https://github.com/markbates/inflect designed to be more modular, more readable, and easier to fix issues on than the original.

Installation

$ go get -u -v github.com/gobuffalo/flect

github.com/gobuffalo/flect

GoDoc

The github.com/gobuffalo/flect package contains "basic" inflection tools, like pluralization, singularization, etc...

The Ident Type

In addition to helpful methods that take in a string and return a string, there is an Ident type that can be used to create new, custom, inflection rules.

The Ident type contains two fields.

  • Original - This is the original string that was used to create the Ident
  • Parts - This is a []string that represents all of the "parts" of the string, that have been split apart, making the segments easier to work with

Examples of creating new inflection rules using Ident can be found in the github.com/gobuffalo/flect/name package.

github.com/gobuffalo/flect/name

GoDoc

The github.com/gobuffalo/flect/name package contains more "business" inflection rules like creating proper names, table names, etc...