Skip to content

Commit

Permalink
Deprecate experimental project to shurcooL-legacy namespace.
Browse files Browse the repository at this point in the history
This is not an actively developed project anymore. It was experimental
in nature, and I've used it to explore and prototype many ideas. I'm
spending my time elsewhere now. Since the code here is old, written in
haste with the goal of testing prototypes rather than long term
maintenance, it's quite old and of low quality.

I'm using my github.com/shurcooL namespace for active, high quality Go
packages only, so move this project from github.com/shurcooL to
shurcooL-legacy to better reflect the state it's in.

If there's desire to continue some of the work here, it will be
extracted bit by bit and re-created as high quality Go packages.

Closes #3.
Closes #4.
  • Loading branch information
dmitshur committed Nov 3, 2017
1 parent 715e0dc commit 2ea4ff8
Show file tree
Hide file tree
Showing 25 changed files with 71 additions and 71 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Conception-go
=============

[![Build Status](https://travis-ci.org/shurcooL/Conception-go.svg?branch=master)](https://travis-ci.org/shurcooL/Conception-go) [![GoDoc](https://godoc.org/github.com/shurcooL/Conception-go?status.svg)](https://godoc.org/github.com/shurcooL/Conception-go)
[![Build Status](https://travis-ci.org/shurcooL-legacy/Conception-go.svg?branch=master)](https://travis-ci.org/shurcooL-legacy/Conception-go) [![GoDoc](https://godoc.org/github.com/shurcooL-legacy/Conception-go?status.svg)](https://godoc.org/github.com/shurcooL-legacy/Conception-go)

This is a work in progress Go implementation of [Conception](https://github.com/shurcooL/Conception#demonstration).

Expand All @@ -28,7 +28,7 @@ Installation
...

# Step back and enjoy 1 command that installs Conception-go and all its dependencies.
go get -u github.com/shurcooL/Conception-go
go get -u github.com/shurcooL-legacy/Conception-go

# Run it.
$(go env GOPATH)/bin/Conception-go
Expand All @@ -47,7 +47,7 @@ sudo apt-get install --yes git
sudo apt-get install --yes libgl1-mesa-dev xorg-dev # OpenGL headers.

# Step back and enjoy 1 command that installs Conception-go and all its dependencies.
go get -u github.com/shurcooL/Conception-go
go get -u github.com/shurcooL-legacy/Conception-go

# Run it.
$(go env GOPATH)/bin/Conception-go
Expand Down
2 changes: 1 addition & 1 deletion caret/caret.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/go-gl/mathgl/mgl64"
intmath "github.com/pkg/math"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
)

type ContentLine interface {
Expand Down
4 changes: 2 additions & 2 deletions caret/caret_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package caret_test
import (
"fmt"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL/Conception-go/pkg/multilinecontent"
"github.com/shurcooL-legacy/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/pkg/multilinecontent"
"github.com/shurcooL/go-goon"
)

Expand Down
2 changes: 1 addition & 1 deletion font.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/mathgl/mgl64"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/caret"
)

var oFontBase, oFontBackground uint32
Expand Down
4 changes: 2 additions & 2 deletions highlight.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ import (
"github.com/go-gl/mathgl/mgl64"
"github.com/mb0/diff"
"github.com/sergi/go-diff/diffmatchpatch"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"github.com/shurcooL/highlight_go"
"github.com/sourcegraph/syntaxhighlight"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/caret"
)

type TextStyle struct {
Expand Down
44 changes: 22 additions & 22 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,23 +40,23 @@ import (
"github.com/go-gl/mathgl/mgl64"
"github.com/mattn/go-runewidth"
intmath "github.com/pkg/math"
"github.com/shurcooL/Conception-go/pkg/exp11"
"github.com/shurcooL/Conception-go/pkg/exp12"
"github.com/shurcooL/Conception-go/pkg/exp13"
"github.com/shurcooL/Conception-go/pkg/exp14"
"github.com/shurcooL/Conception-go/pkg/gist4727543"
"github.com/shurcooL/Conception-go/pkg/gist5504644"
"github.com/shurcooL/Conception-go/pkg/gist6003701"
. "github.com/shurcooL/Conception-go/pkg/gist7480523"
. "github.com/shurcooL/Conception-go/pkg/gist7576154"
. "github.com/shurcooL/Conception-go/pkg/gist7651991"
. "github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL/Conception-go/pkg/httpstoppable"
"github.com/shurcooL/Conception-go/pkg/legacyvcs"
"github.com/shurcooL/Conception-go/pkg/markdown_http"
"github.com/shurcooL/Conception-go/pkg/multilinecontent"
"github.com/shurcooL/Conception-go/pkg/u10"
"github.com/shurcooL/Conception-go/pkg/u6"
"github.com/shurcooL-legacy/Conception-go/pkg/exp11"
"github.com/shurcooL-legacy/Conception-go/pkg/exp12"
"github.com/shurcooL-legacy/Conception-go/pkg/exp13"
"github.com/shurcooL-legacy/Conception-go/pkg/exp14"
"github.com/shurcooL-legacy/Conception-go/pkg/gist4727543"
"github.com/shurcooL-legacy/Conception-go/pkg/gist5504644"
"github.com/shurcooL-legacy/Conception-go/pkg/gist6003701"
. "github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
. "github.com/shurcooL-legacy/Conception-go/pkg/gist7576154"
. "github.com/shurcooL-legacy/Conception-go/pkg/gist7651991"
. "github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/httpstoppable"
"github.com/shurcooL-legacy/Conception-go/pkg/legacyvcs"
"github.com/shurcooL-legacy/Conception-go/pkg/markdown_http"
"github.com/shurcooL-legacy/Conception-go/pkg/multilinecontent"
"github.com/shurcooL-legacy/Conception-go/pkg/u10"
"github.com/shurcooL-legacy/Conception-go/pkg/u6"
"github.com/shurcooL/github_flavored_markdown/gfmstyle"
"github.com/shurcooL/go-goon"
"github.com/shurcooL/go-goon/bypass"
Expand All @@ -78,8 +78,8 @@ import (
"gopkg.in/pipe.v2"
"sourcegraph.com/sourcegraph/go-diff/diff"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL/Conception-go/event"
"github.com/shurcooL-legacy/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/event"
)

var modeFlag = flag.Int("mode", 1, "Mode.")
Expand Down Expand Up @@ -6630,7 +6630,7 @@ func init() {
}

var gddoClient = gddo.Client{
UserAgent: "Conception-go (https://github.com/shurcooL/Conception-go)",
UserAgent: "Conception-go (https://github.com/shurcooL-legacy/Conception-go)",
}

func main() {
Expand Down Expand Up @@ -6665,9 +6665,9 @@ func main() {

// Set the working directory to the root of the package, so that its assets can be accessed.
{
conceptionGo := GoPackageFromImportPath("github.com/shurcooL/Conception-go")
conceptionGo := GoPackageFromImportPath("github.com/shurcooL-legacy/Conception-go")
if conceptionGo == nil {
log.Fatalln("Unable to find github.com/shurcooL/Conception-go package in your GOPATH, it's needed to load assets.")
log.Fatalln("Unable to find github.com/shurcooL-legacy/Conception-go package in your GOPATH, it's needed to load assets.")
}
err := os.Chdir(conceptionGo.Bpkg.Dir)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion page/events/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

"github.com/goxjs/gl"
"github.com/goxjs/glfw"
"github.com/shurcooL/Conception-go/event"
"github.com/shurcooL-legacy/Conception-go/event"
)

var mousePointer = &event.Pointer{VirtualCategory: event.Pointing}
Expand Down
2 changes: 1 addition & 1 deletion page/page2/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import (
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/mathgl/mgl64"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/caret"
)

var oFontBase, oFontBackground uint32
Expand Down
6 changes: 3 additions & 3 deletions page/page2/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/mathgl/mgl64"
"github.com/goxjs/glfw"
"github.com/shurcooL/Conception-go/event"
"github.com/shurcooL-legacy/Conception-go/event"
"github.com/shurcooL/go-goon"
)

Expand Down Expand Up @@ -151,9 +151,9 @@ func init() {
return p.Dir, nil
}

dir, err := importPathToDir("github.com/shurcooL/Conception-go")
dir, err := importPathToDir("github.com/shurcooL-legacy/Conception-go")
if err != nil {
log.Fatalln("Unable to find github.com/shurcooL/Conception-go package in your GOPATH, it's needed to load assets:", err)
log.Fatalln("Unable to find github.com/shurcooL-legacy/Conception-go package in your GOPATH, it's needed to load assets:", err)
}
err = os.Chdir(dir)
if err != nil {
Expand Down
2 changes: 1 addition & 1 deletion page/terminal/font.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/mathgl/mgl64"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/caret"
)

var oFontBase, oFontBackground uint32
Expand Down
6 changes: 3 additions & 3 deletions page/terminal/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"github.com/go-gl/gl/v2.1/gl"
"github.com/go-gl/mathgl/mgl64"
"github.com/goxjs/glfw"
"github.com/shurcooL/Conception-go/event"
"github.com/shurcooL-legacy/Conception-go/event"
)

const (
Expand Down Expand Up @@ -264,9 +264,9 @@ func init() {
return p.Dir, nil
}

dir, err := importPathToDir("github.com/shurcooL/Conception-go")
dir, err := importPathToDir("github.com/shurcooL-legacy/Conception-go")
if err != nil {
log.Fatalln("Unable to find github.com/shurcooL/Conception-go package in your GOPATH, it's needed to load assets:", err)
log.Fatalln("Unable to find github.com/shurcooL-legacy/Conception-go package in your GOPATH, it's needed to load assets:", err)
}
err = os.Chdir(dir)
if err != nil {
Expand Down
6 changes: 3 additions & 3 deletions pkg/exp12/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ package exp12
import (
"sync"

"github.com/shurcooL/Conception-go/pkg/exp13"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL/Conception-go/pkg/legacyvcs"
"github.com/shurcooL-legacy/Conception-go/pkg/exp13"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/legacyvcs"
)

// rootPath -> *VcsState
Expand Down
4 changes: 2 additions & 2 deletions pkg/exp13/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
package exp13

import (
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL/Conception-go/pkg/legacyvcs"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/legacyvcs"
go_vcs "golang.org/x/tools/go/vcs"
)

Expand Down
8 changes: 4 additions & 4 deletions pkg/exp14/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ import (
"io"
"time"

"github.com/shurcooL/Conception-go/pkg/gist7480523"
"github.com/shurcooL/Conception-go/pkg/gist7651991"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL/Conception-go/pkg/gist8018045"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7651991"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist8018045"
)

type GoPackageList interface {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gist4727543/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"strconv"
"strings"

"github.com/shurcooL/Conception-go/pkg/gist5504644"
"github.com/shurcooL-legacy/Conception-go/pkg/gist5504644"
)

// tryUnquote returns the unquoted string, or the original string if unquoting fails.
Expand Down
12 changes: 6 additions & 6 deletions pkg/gist4727543/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gist4727543_test
import (
"fmt"

"github.com/shurcooL/Conception-go/pkg/gist4727543"
"github.com/shurcooL-legacy/Conception-go/pkg/gist4727543"
)

func Example() {
Expand All @@ -12,11 +12,11 @@ func Example() {
fmt.Println(gist4727543.GetForcedUseRenamed("io/ioutil", "RenamedPkg"))
fmt.Println(gist4727543.GetForcedUseRenamed("io/ioutil", "."))
fmt.Println()
fmt.Println(gist4727543.GetForcedUseFromImport(`github.com/shurcooL/Conception-go/pkg/gist4727543`))
fmt.Println(gist4727543.GetForcedUseFromImport(`"github.com/shurcooL/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport("`github.com/shurcooL/Conception-go/pkg/gist4727543`"))
fmt.Println(gist4727543.GetForcedUseFromImport(`. "github.com/shurcooL/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport(`renamed "github.com/shurcooL/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport(`github.com/shurcooL-legacy/Conception-go/pkg/gist4727543`))
fmt.Println(gist4727543.GetForcedUseFromImport(`"github.com/shurcooL-legacy/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport("`github.com/shurcooL-legacy/Conception-go/pkg/gist4727543`"))
fmt.Println(gist4727543.GetForcedUseFromImport(`. "github.com/shurcooL-legacy/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport(`renamed "github.com/shurcooL-legacy/Conception-go/pkg/gist4727543"`))
fmt.Println(gist4727543.GetForcedUseFromImport(`bad`))
fmt.Println(gist4727543.GetForcedUseFromImport(`bad bad bad`))

Expand Down
2 changes: 1 addition & 1 deletion pkg/gist5645828/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
"os"
"path/filepath"

"github.com/shurcooL/Conception-go/pkg/gist5504644"
"github.com/shurcooL-legacy/Conception-go/pkg/gist5504644"
"github.com/shurcooL/go/printerutil"
)

Expand Down
6 changes: 3 additions & 3 deletions pkg/gist7480523/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ import (
"sort"
"strings"

"github.com/shurcooL/Conception-go/pkg/exp12"
"github.com/shurcooL-legacy/Conception-go/pkg/exp12"
"golang.org/x/tools/go/vcs"

"github.com/shurcooL/Conception-go/pkg/gist5504644"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist5504644"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
)

type GoPackageStringer func(*GoPackage) string
Expand Down
2 changes: 1 addition & 1 deletion pkg/gist7480523/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gist7480523_test
import (
"fmt"

"github.com/shurcooL/Conception-go/pkg/gist7480523"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
)

func ExampleGetRepoImportPathPattern() {
Expand Down
2 changes: 1 addition & 1 deletion pkg/gist7576154/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import (
"io"
"os/exec"

"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
"gopkg.in/pipe.v2"
)

Expand Down
2 changes: 1 addition & 1 deletion pkg/gist7802150/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ package gist7802150_test
import (
"fmt"

"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
)

func ExampleFileUri_Path() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/gist8018045/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ import (
"path/filepath"
"strings"

"github.com/shurcooL/Conception-go/pkg/gist5504644"
"github.com/shurcooL/Conception-go/pkg/gist7480523"
"github.com/shurcooL-legacy/Conception-go/pkg/gist5504644"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
)

// GetGoPackages gets all local Go packages (from GOROOT and all GOPATH workspaces).
Expand Down
2 changes: 1 addition & 1 deletion pkg/gist8018045/main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import (
"fmt"
"time"

"github.com/shurcooL/Conception-go/pkg/gist7480523"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
)

func ExampleGetGoPackages() {
Expand Down
4 changes: 2 additions & 2 deletions pkg/multilinecontent/multilinecontent.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package multilinecontent
import (
"strings"

"github.com/shurcooL/Conception-go/caret"
"github.com/shurcooL/Conception-go/pkg/gist7802150"
"github.com/shurcooL-legacy/Conception-go/caret"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7802150"
)

// New creates an empty memory-backed MultilineContent.
Expand Down
6 changes: 3 additions & 3 deletions pkg/u6/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"os/exec"
"strings"

"github.com/shurcooL/Conception-go/pkg/exp13"
"github.com/shurcooL/Conception-go/pkg/gist7480523"
"github.com/shurcooL/Conception-go/pkg/legacyvcs"
"github.com/shurcooL-legacy/Conception-go/pkg/exp13"
"github.com/shurcooL-legacy/Conception-go/pkg/gist7480523"
"github.com/shurcooL-legacy/Conception-go/pkg/legacyvcs"
"github.com/shurcooL/go/pipeutil"
"github.com/shurcooL/go/trim"
"gopkg.in/pipe.v2"
Expand Down

0 comments on commit 2ea4ff8

Please sign in to comment.