Skip to content
Snippets Groups Projects
Select Git revision
  • main default protected
  • trading_hours
  • refactor_trading_hours
  • audit_cleaning_cater_for_non_struct_fields
  • remove-info-logs
  • sl-refactor
  • 18-use-scan-for-param-values
  • 17-order-search-results
  • 4-simplify-framework-2
  • 1-http-error
  • v1.294.0
  • v1.293.0
  • v1.292.0
  • v1.291.0
  • v1.290.0
  • v1.289.0
  • v1.288.0
  • v1.287.0
  • v1.286.0
  • v1.285.0
  • v1.284.0
  • v1.283.0
  • v1.282.0
  • v1.281.0
  • v1.280.0
  • v1.279.0
  • v1.278.0
  • v1.277.0
  • v1.276.0
  • v1.275.0
30 results

bobgroup-go-utils

  • Clone with SSH
  • Clone with HTTPS
  • go-utils

    A set of utilities used by our Golang projects

    Install this private repo

    Add this in your ~/.gitconfig:

    [url "ssh://git@gitlab.bob.co.za/"]
    	insteadOf = https://gitlab.bob.co.za/

    Run this to reset the go proxy

    go env -w GOPROXY=

    Set the private go module path

    go env -w GOPRIVATE=gitlab.bob.co.za:bob-public-utils/bobgroup-go-utils

    Run this in your project to add the private module

    go get gitlab.bob.co.za:bob-public-utils/bobgroup-go-utils

    Creating a new release

    When making changes, a new release needs to be made in order to use the updated library in your project.

    1. First, make sure your bob-tools (https://gitlab.bob.co.za/bob-tools/bobgroup-tools) repository is up to date (minimum at commit 442f62f0):
    git pull
    make install
    1. After your changes have been merged to the main branch of go-utils, run the following command which will automatically create a new tag:
    bob release full

    and select project bob-public-utils/bobgroup-go-utils

    1. For your project, upgrade to the new version by running the go get command and specifying the new tag:
    go get gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils@v1.6.0

    Note: The release documentation can be found in GitLab, by navigating to the new tag. For example: https://gitlab.bob.co.za/bob-public-utils/bobgroup-go-utils/-/tags/v1.6.0