https://github.com/fdv/crappy-go-elasticsearch-pkg
Some ugly code
https://github.com/fdv/crappy-go-elasticsearch-pkg
Last synced: 8 months ago
JSON representation
Some ugly code
- Host: GitHub
- URL: https://github.com/fdv/crappy-go-elasticsearch-pkg
- Owner: fdv
- License: mit
- Created: 2019-05-25T07:29:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-26T07:54:11.000Z (about 7 years ago)
- Last Synced: 2025-05-31T06:52:21.879Z (about 1 year ago)
- Language: Go
- Size: 14.6 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Crappy Code, don't use it!
So I've finally decided to learn Go seriously. It's the first time I'm diving into a new language since 2002, and I'm not a developer so expect crappy code, usual conventions violations and "there's a much better way to do it".
My main problem is I can't just follow tutorials so I needed a project to code on, hence this repo. So now you know.
## Usage
```
package main
import (
"fmt"
"github.com/fdv/crappy-go-elasticsearch-pkg"
)
func main() {
cluster := elasticsearch.Init("http://localhost", 9000)
fmt.Println(cluster.Geturi())
fmt.Println(cluster.Getport())
fmt.Println(cluster.Getsettings())
fmt.Println(cluster.Getsetting("cluster.routing.allocation.enable"))
}
````