Giter VIP home page Giter VIP logo

str's Introduction

str GoDoc Go Report Card Commitizen friendly Travis CI

by ddspog

Package str represents a string production line.

License

You are free to copy, modify and distribute str package with attribution under the terms of the MIT license. See the LICENSE file for details.

Installation

Install str package with:

go get github.com/ddspog/str

How to use

This package represents a string production line.

This is made with the interfaces in this package Chainer, Splitter and Collecter. Each are created using srt.New as starting point, this function will convert via fmt.Sprintf, a string to Chainer. And then various operations can be performed on it.

Each object have the ability to put its output as a string, as an error and printed onto desired io.Writer.

The package can be used like this:

feat := "The_fire_Blaze"
s := str.New(feat).Split("_").String() // "ThefireBlaze"

Performance

This package is slower than usual solutions. Because it makes lots of conversion, and the use of fmt package itself, that have some performance problems.

This is due to the objective of this package: to be a clearer tool to operates on strings.

Testing

This package has tests covering all code on it. Further additions to code should try to follow this.

Contribution

This package has some objectives from now:

  • Incorporate all operations on strings package.
  • Incorporate any new ideas about possible improvements.

Any interest in help is much appreciated.

str's People

Contributors

ddspog avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.