Skip to content

renatopp/x

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

X

This is an attempt to extend the golang builtin package with more utilities while improving the consistence of its interface.

Package Description Status
fsx File System stable
jsonx Json stable
mathx Math for ints and floats stable
randx Random stable
runex Runes stable
strx Strings stable
dsx Data Structures experimental
httpx Networking experimental
logx Logs, prints and formatting experimental
iterx Iterators wip
syncx Sync/Async _wip

Installation

go get github.com/renatopp/x

Usage

import (
  "github.com/renatopp/x/httpx"
  "github.com/renatopp/x/logx"
)

func main() {
  response := httpx.Fetch("GET", "https://google.com")
  if !response.Is2xx() {
    logx.Println("Bad request!")
    return
  }

  logx.Println("Body: %v", response.Text())
}

About

A series of extensions utilities for golang

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages