Giter Club home page Giter Club logo

text's Introduction

text's People

Contributors

cure avatar dependabot[bot] avatar kr avatar maruel avatar mmorel-35 avatar octo avatar yen3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

text's Issues

Infinite loop in text.Wrap() if input is lacking spaces

When calling text.Wrap(), if the input string:

  1. has no spaces, and
  2. is longer than the wrap size,
    then the function will loop forever and consume all available memory.

Sample program (be careful running this, it will consume all available memory):

package main

import (
    "github.com/kr/text"
)

func main() {
    text.Wrap("aaaaa", 4)
}

Master branch deleted

Hey you seemed to have deleted the master branch of this project and now go get commands are failing all over the system. Could you please revert? Thanks

Go version is very old

The current library uses Go language verion 1.12.

go 1.12

This version is very old.
Version 1.12 was released in February 2019 according to the Go's website, https://go.dev/project.
Today is February 2023. Four (4) years have passed !

Thank you.

Hugo Dependency error on github.com/kr/text

I have been publishing changes to my hugo site via CodeShip and it is now failing when running go get -u -v github.com/spf13/hugo It seems to be failing when loading this repo which doesn't appear to have a master branch. Could this be related to a recent change in this repo, or is this specific to the way the dependency is defined in hugo? Any ideas would be appreciated. Thanks!

github.com/kr/text (download)
# cd /home/rof/src/github.com/kr/text; git checkout master
error: pathspec 'master' did not match any file(s) known to git.
package github.com/spf13/hugo
    imports github.com/BurntSushi/toml
    imports github.com/PuerkitoBio/purell
    imports github.com/opennota/urlesc
    imports github.com/bep/inflect
    imports github.com/dchest/cssmin
    imports github.com/eknkc/amber
    imports github.com/eknkc/amber/parser
    imports github.com/fsnotify/fsnotify
    imports golang.org/x/sys/unix
    imports github.com/gorilla/websocket
    imports github.com/kardianos/osext
    imports github.com/kyokomi/emoji
    imports github.com/miekg/mmark
    imports github.com/mitchellh/mapstructure
    imports github.com/russross/blackfriday
    imports github.com/shurcooL/sanitized_anchor_name
    imports github.com/spf13/afero
    imports github.com/pkg/sftp
    imports github.com/kr/fs
    imports golang.org/x/crypto/ssh
    imports golang.org/x/crypto/curve25519
    imports github.com/spf13/afero/mem
    imports github.com/spf13/afero/sftp
    imports golang.org/x/text/transform
    imports golang.org/x/text/unicode/norm
    imports github.com/spf13/cast
    imports github.com/spf13/jwalterweatherman
    imports github.com/spf13/cobra
    imports github.com/spf13/pflag
    imports github.com/spf13/cobra/doc
    imports github.com/cpuguy83/go-md2man/md2man
    imports github.com/spf13/fsync
    imports github.com/spf13/hugo/bufferpool
    imports github.com/spf13/hugo/commands
    imports github.com/spf13/hugo/create
    imports github.com/spf13/hugo/helpers
    imports github.com/spf13/hugo/hugofs
    imports github.com/spf13/viper
    imports github.com/hashicorp/hcl
    imports github.com/hashicorp/hcl/hcl/ast
    imports github.com/hashicorp/hcl/hcl/strconv
    imports github.com/hashicorp/hcl/hcl/token
    imports github.com/hashicorp/hcl/hcl/parser
    imports github.com/hashicorp/hcl/hcl/scanner
    imports github.com/hashicorp/hcl/json/parser
    imports github.com/hashicorp/hcl/json/scanner
    imports github.com/hashicorp/hcl/json/token
    imports github.com/kr/pretty
    imports github.com/kr/text: exit status 1

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.