Skip to content

sinalalebakhsh/Gocron

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Gocron - a API for learning GO language in CLI


Features In Versions
Archive
🎭 V1.0.4 🎭 Add Goroutines for searching concurently in data
πŸ–Œ V1.0.5 πŸ–Œ Add Single Examples for better learning.
🎯 v1.0.6 🎯 Add Channel and rerlation between Gourotines
🧭 v1.0.8 🧭 Add message for "not found yet"
🌍 v1.0.12 🌍 Adding => All Creating HTTP Servers
πŸͺ v1.0.13 πŸͺ Add in everything Inspecting the Request
πŸ₯Ž v1.0.14 πŸ₯ŽπŸ₯ŽπŸ₯Ž Creating My First Server
πŸ₯ v1.0.15 πŸ₯ Add example for saving logs in TXT file from Server GO
πŸ† v1.0.16 πŸ† Will write in Terminal and File for feture analyzing.
πŸ”° v1.0.17 πŸ”° Will write in Terminal and File for feture analyzing.
πŸ’Ž v1.0.20 πŸ’Ž Add this section: The user is asked if he wants to enter the project page.
Complete HTTP Servers First Step
πŸͺ™ v1.0.21 πŸͺ™ Complete HTTP Servers First Step
⚽ 1.0.22 ⚽ Add Clear Screen in program After Ending for in current running program you can use it ⚽
⏺ v1.0.23 ⏺ 1- add build program ⏺ 2- debuging ⏺ 3- add map instead slice"
βœ… v1.0.24 βœ… develop searching in examples with more than one or two arguments: βœ… this is better for searching like this: βœ… http servers example βœ… result is true for this.
πŸ”΄ v1.0.25 πŸ”΄ Add two file .sh for pushing in GitHub
πŸ”” v1.0.25 πŸ”” Debug single definition for searching by To Lower Function Clear Key Implementation: Identify the key that will trigger the clearing functionality. This could be a specific keystroke or command. Write the code that listens for this key input and executes the clear action. Ensure that the user is provided with feedback confirming that the data has been cleared. Enhanced Search Functionality: Determine what specific improvements you want to make in the search feature. This could include adding filters (e.g., by category, difficulty level), allowing more complex search queries, or implementing a fuzzy search algorithm. Implement the necessary code to realize these improvements. This might involve changes to the user interface and underlying data structures.
πŸ… v1.0.27 πŸ… Add license MIT
🌈 v1.0.28 🌈 Add a feature for Question/Answer from user
🟣 v1.0.29 🟣 Add a feature if user wrote 'godoc usage' specified
🐻 v1.0.31 🐻 Debuging For being a GitHub donkey!!!!!
πŸ’  v1.0.32 πŸ’ πŸ’ πŸ’  If User Input Is Just Number πŸ’ πŸ’ πŸ’ 
πŸ’  v1.0.33 πŸ’ πŸ’ πŸ’  πŸ’ πŸ’ πŸ’  Adding There are complete => Numbers for Keys Map until 480 πŸ’ πŸ’ πŸ’ 
v1.0.38 Now for Windows and Ubuntu amd64 = Building Executables for Different Architectures This is my First developed project , so maybe will not work for your Windows I learn this from: https://www.digitalocean.com/community/tutorials/how-to-build-go-executables-for-multiple-platforms-on-ubuntu-20-04

Indtroduction

is a API for learning GO language with example. my name is Sina LalehBakhsh, I hope this API is useful for you after running program, write your single word about any of GO language. if your perpuse is more than one word, for convenience searching, just write keywords. like this: map slice

1.Download Gocron

git clone https://github.com/sinalalebakhsh/Gocron.git

2.in Terminal write current directory dowloaded:

./Gocron

3.Use it

just this!

GO installation

The first way


1-1 download from

https://go.dev/dl/ 

1-2 Linux:

rm -rf /usr/local/go && tar -C /usr/local -xzf go1.21.1.linux-amd64.tar.gz
export PATH=$PATH:/usr/local/go/bin

1-3 Verify that in Terminal:

go version

Debug Installation:

Remove any previous Go installation

sudo rm -rf /usr/local/go 
sudo tar -C /usr/local -xzf go1.20.5.linux-amd64.tar.gz
echo $PATH | grep "/usr/local/go/bin"

for config to all directories:

echo 'export GOROOT=/usr/local/go' >> ~/.bashrc
echo 'export PATH=$GOPATH/bin:$GOROOT/bin:$PATH' >> ~/.bashrc
echo 'export GOPATH=$HOME/go' >> ~/.bashrc
source ~/.profile
Or use this for only you want to use Go specific directory:
export GOROOT=/usr/local/go
export GOPATH=$HOME/go
export PATH=$GOPATH/bin:$GOROOT/bin:$PATH

2-Using


You can use this command before start:

β—‰ Run

go run .

β—‰ Build

go build .
than:
./Gocron

β—‰ Help

./Gocron -h 
./Gocron help
./Gocron -help
./Gocron --help

β—‰ Show All

./Gocron all
./Gocron -all
./Gocron --all

β—‰ Crawling

Usage

./Gocron <URL> <depth>

example:

./Gocron https://example.com 2


in this example Gocron Crawler go and get every links of that will be print


maybe the website protect by robot.txt ot another you dont have any link

β—‰ if just write one input you get all about that:

READING AND WRITING DATA
READINGANDWRITINGDATA
ALL READING AND WRITING DATA
ALLREADINGANDWRITINGDATA
ALL REGEX 
ALLREGEX
ALL TIME
ALLTIME
ALL HTML AND TEMPLATE
ALLHTMLANDTEMPLATE
ALL WORKING WITH FILES
ALLWORKINGWITHFILES
ALL JSON
ALLJSON
ALL JSON DATA
ALLJSONDATA
ALL WORK WITH JSON DATA
ALLWORKWITHJSONDATA
ALL WORKING WITH JSON DATA
ALLWORKINGWITHJSONDATA
ALL HTTP SERVERS
ALLHTTPSERVERS
ALL CREATING HTTP SERVERS
ALLCREATINGHTTPSERVERS
ALL HTTP CLIENTS
ALLHTTPCLIENTS
ALL CREATING HTTP CLIENTS
ALLCREATINGHTTPCLIENTS
ALL WORKING WITH DATABASES
ALLWORKINGWITHDATABASES
ALL DATABASES
ALLDATABASES
ALLUSINGREFLECTION
ALL USING REFLECTION

β—‰ πŸ’  v1.0.32

πŸ’ πŸ’ πŸ’  If User Input Is Just Number πŸ’ πŸ’ πŸ’ 

example after run Gocron:

operator 1 question

result is this:

The cars are produced on an assembly line. The assembly line has a certain speed, that can be changed. The faster the assembly line speed is, the more cars are produced. However, changing the speed of the assembly line also changes the number of cars that are produced successfully, that is cars without any errors in their production.	Implement a function that takes in the number of cars produced per hour and the success rate and calculates the number of successful cars made per hour. The success rate is given as a percentage, Note: the return value should be a float64, from 0 to 100:

another example after run Gocron:

πŸŒŽπŸŒπŸŒπŸ€βšΎπŸ₯ŽπŸπŸŸ πŸŸ‘πŸŸ’πŸ”΅πŸŸ€πŸ”˜πŸ˜πŸ₯˜πŸ«“πŸ΅πŸ‘πŸŠπŸˆπŸŒ³β€οΈπŸŽΎπŸ•πŸœπŸΊπŸ«–πŸŽ³πŸŽ–πŸ₯‡πŸ₯ˆπŸ₯‰πŸŽƒπŸ”₯πŸ’§β­πŸŒŸπŸŽπŸπŸš‚πŸŸ₯🟧🟨🟩🟦πŸŸͺπŸŸ«πŸ”ΆπŸ”·πŸ’ πŸ”†βΉπŸ›‘πŸ”’πŸ“ŒπŸ—‚πŸ“‚πŸ’°πŸ“”πŸ“•πŸ“–πŸ“—πŸ“˜πŸ“™πŸ“šπŸ““πŸ“’πŸ’πŸŽ¨