gocommon

package module
v1.0.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

README

GO COMMON

A simple replication of common java libraries in GO.

Contains basic implementations of the following:

  • Collection interface
  • List interface
    • ArrayList
    • LinkedList
  • Queue
    • PriorityQueue (min/max)
    • FIFO (LinkedList)
  • Map
    • HashMap
    • LinkedHashMap
  • Optional
  • Stream
  • Time
    • OffsetDateTime
    • LocalDateTime

Note

This is a work in progress. Will gradually support more data structures and additional methods of existing data structures.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type String

type String string

func (String) Contains

func (s String) Contains(sub string) bool

func (String) Format

func (s String) Format(args ...any) String

func (String) Index

func (s String) Index(keyword string) int

func (String) IsEmpty

func (s String) IsEmpty() bool

func (String) Length

func (s String) Length() int

func (String) Replace

func (s String) Replace(oldStr string, newStr string) String

Replace all instances of old substring with new value. Return new String

func (String) Split

func (s String) Split(keyword string) []String

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL