kr / text Goto Github PK
View Code? Open in Web Editor NEWMiscellaneous functions for formatting text
Home Page: http://godoc.org/github.com/kr/text
License: MIT License
Miscellaneous functions for formatting text
Home Page: http://godoc.org/github.com/kr/text
License: MIT License
This is a Go package for manipulating paragraphs of text. See https://pkg.go.dev/github.com/kr/text for full documentation.
When calling text.Wrap(), if the input string:
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)
}
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
Getting "Not Found"
maybe due to issue #6
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.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.