Skip to content

Commit

Permalink
rename go_crud to gocrud
Browse files Browse the repository at this point in the history
  • Loading branch information
syronz committed Oct 11, 2019
1 parent ff3e9a1 commit 899782d
Showing 17 changed files with 24 additions and 24 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -15,5 +15,5 @@ session.vim
bin/
routes/
samples/
go_crud
gocrud
TODO.md
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[![Build Status](https://api.travis-ci.org/syronz/go_crud.svg?branch=master)](http://travis-ci.org/syronz/go_crud) [![ReportCard](https://goreportcard.com/badge/github.com/syronz/go_crud)](https://goreportcard.com/report/github.com/syronz/go_crud) [![Release](https://img.shields.io/badge/release-v0.9-2c215ed.svg)](https://github.com/syronz/go_crud/releases/tag/v0.9)
[![Build Status](https://api.travis-ci.org/syronz/gocrud.svg?branch=master)](http://travis-ci.org/syronz/gocrud) [![ReportCard](https://goreportcard.com/badge/github.com/syronz/gocrud)](https://goreportcard.com/report/github.com/syronz/gocrud) [![Release](https://img.shields.io/badge/release-v0.9-2c215ed.svg)](https://github.com/syronz/gocrud/releases/tag/v0.9)

# go_crud
# gocrud
simple app like postman

### Installation
@@ -44,7 +44,7 @@ basic.json

"header":{
"Content-Type": "application/json",
"User-Agent": "go_crud/0.1",
"User-Agent": "gocrud/0.1",
"Accept": "*/*",
"Cache-Control": "no-cache",
"Connection": "keep-alive"
2 changes: 1 addition & 1 deletion basic.json
Original file line number Diff line number Diff line change
@@ -23,7 +23,7 @@

"header":{
"Content-Type": "application/json",
"User-Agent": "go_crud/0.1",
"User-Agent": "gocrud/0.1",
"Accept": "*/*",
"Cache-Control": "no-cache",
"Connection": "keep-alive"
2 changes: 1 addition & 1 deletion engine/engine.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package engine

import (
"go_crud/models"
"gocrud/models"
)

// Engine is must important struct for saving almost anything and pass important variables to various functions
2 changes: 1 addition & 1 deletion engine/getEnv.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package engine

import (
"go_crud/models"
"gocrud/models"
)

// GetEnv return back the selected environment
2 changes: 1 addition & 1 deletion engine/sendRequest.go
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import (
"bytes"
"encoding/json"
"fmt"
"go_crud/models"
"gocrud/models"
"io/ioutil"
"log"
"net/http"
2 changes: 1 addition & 1 deletion engine/showPage.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package engine

import (
"fmt"
. "go_crud/global"
. "gocrud/global"
)

// NumForList is used to show number or alphabetic for selection list which can be directory or file (request) or
2 changes: 1 addition & 1 deletion engine/translatedContent.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package engine

import (
"go_crud/helper"
"gocrud/helper"
)

// TranslatedContent prepare request by swap keywords with variables, which defined in basic.json and env part
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module go_crud
module gocrud

go 1.12

2 changes: 1 addition & 1 deletion helper/envReplace.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package helper

import (
"go_crud/models"
"gocrud/models"
"strings"
)

2 changes: 1 addition & 1 deletion helper/parseEnv.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package helper

import (
"go_crud/models"
"gocrud/models"
)

// ParseEnv can handle complicated environment design of variables inside basic.json and it uses interfaces for
2 changes: 1 addition & 1 deletion loaders/loadBasic.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package loaders

import (
"encoding/json"
"go_crud/models"
"gocrud/models"
"log"
"os"
)
2 changes: 1 addition & 1 deletion loaders/loadConfig.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package loaders

import (
"encoding/json"
"go_crud/models"
"gocrud/models"
"log"
"os"
)
2 changes: 1 addition & 1 deletion loaders/open.go
Original file line number Diff line number Diff line change
@@ -2,7 +2,7 @@ package loaders

import (
"fmt"
"go_crud/models"
"gocrud/models"
"io/ioutil"
"log"
"os"
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
@@ -4,11 +4,11 @@ import (
"flag"
"fmt"
"github.com/eiannone/keyboard"
"go_crud/engine"
. "go_crud/global"
"go_crud/helper"
"go_crud/loaders"
"go_crud/trace"
"gocrud/engine"
. "gocrud/global"
"gocrud/helper"
"gocrud/loaders"
"gocrud/trace"
"log"
"os/user"
)
@@ -19,7 +19,7 @@ func main() {
log.Fatal(err)
}

configPath := flag.String("config", usr.HomeDir+"/.go_crud/config.json", "config file path")
configPath := flag.String("config", usr.HomeDir+"/.gocrud/config.json", "config file path")
flag.Parse()

engine := new(engine.Engine)
2 changes: 1 addition & 1 deletion trace/direcotry.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package trace

import (
"go_crud/models"
"gocrud/models"
"io/ioutil"
"log"
)
2 changes: 1 addition & 1 deletion trace/file.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package trace

import (
"go_crud/models"
"gocrud/models"
"io/ioutil"
"log"
"path"

0 comments on commit 899782d

Please sign in to comment.