modulepackage
0.0.0-20230801132133-d6a653922a5f
Repository: https://github.com/go-labx/orm.git
Documentation: pkg.go.dev
# README
example
My SDK is a Go library for interacting with the My API.
Installation
go get github.com/{your_username}/{your_repository}/sdk
Usage
To use My SDK, import it in your Go code:
import "github.com/{your_username}/{your_repository}/sdk"
Here is an example of how to use My SDK to ping the My API:
package main
import (
"log"
"github.com/{your_username}/{your_repository}/sdk"
)
func main() {
client := sdk.NewClient("<https://my-api.com>")
err := client.Ping()
if err != nil {
log.Fatal(err)
}
log.Println("API is available.")
}
API Documentation
For detailed API documentation and usage examples, please refer to the documentation.
Contributing
Contributions are welcome! Please see CONTRIBUTING.md for more information.
License
My SDK is licensed under the MIT License. See LICENSE for more information.
# Functions
MapToString is a utility function that converts a map into a string.
NewDataSource creates a new DataSource with the given options.
NewDB creates a new ORM DB instance.
SetDBName sets the database name for the DataSource.
SetHost sets the host for the DataSource.
SetNet sets the network for the DataSource.
SetParams sets the parameters for the DataSource.
SetPassword sets the password for the DataSource.
SetPort sets the port for the DataSource.
SetUser sets the user for the DataSource.
ToSnakeCase is a utility function that converts a given string into snake case.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author