https://github.com/sinalalebakhsh/gocron
Go learning with CLI tool
https://github.com/sinalalebakhsh/gocron
go golang
Last synced: 5 months ago
JSON representation
Go learning with CLI tool
- Host: GitHub
- URL: https://github.com/sinalalebakhsh/gocron
- Owner: sinalalebakhsh
- License: mit
- Created: 2023-09-03T14:20:18.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-16T11:30:37.000Z (over 1 year ago)
- Last Synced: 2024-01-16T18:21:26.104Z (over 1 year ago)
- Topics: go, golang
- Language: Go
- Homepage:
- Size: 162 MB
- Stars: 5
- Watchers: 1
- Forks: 4
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# 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### 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:ππππβΎπ₯ππ π‘π’π΅π€πππ₯π«π΅ππππ³β€οΈπΎπππΊπ«π³ππ₯π₯π₯ππ₯π§βπππππ₯π§π¨π©π¦πͺπ«πΆπ·π πβΉπ‘πππππ°πππππππππππ¨