<commit_before>#!/bin/bash

: "${HOME?}"
: "${ASDF_HOME?}"

if ! test "$(type -t asdf_bootstrap = 'function')"
then
    log_error 'You need asdf_bootstrap to install Go'
    return
fi

GOLANG_DOTFILES_VERSION='1.13'

setup_go() {
    asdf_bootstrap 'golang' "${GOLANG_DOTFILES_VERSION}"

    GO_ASDF_PATH="${ASDF_HOME}/installs/golang/${GOLANG_DOTFILES_VERSION}"
    GOPATH="${GO_ASDF_PATH}/packages"
    GOROOT="${GO_ASDF_PATH}/go"
    GO111MODULE='on'
    export GOPATH GOROOT GO111MODULE

    DOTFILES_FEATURES="go ${DOTFILES_FEATURES}"
}

setup_go

install_go_tools() {
    declare -a go_github_packages=(
        "astaxie/bat"
        "golangci/golangci-lint/cmd/golangci-lint"
        "jessfraz/dockfmt"<commit_msg>feat(go): update from `v1.13` to `v1.13.4`<commit_after>#!/bin/bash

: "${HOME?}"
: "${ASDF_HOME?}"

if ! test "$(type -t asdf_bootstrap = 'function')"
then
    log_error 'You need asdf_bootstrap to install Go'
    return
fi

GOLANG_DOTFILES_VERSION='1.13.4'

setup_go() {
    asdf_bootstrap 'golang' "${GOLANG_DOTFILES_VERSION}"

    GO_ASDF_PATH="${ASDF_HOME}/installs/golang/${GOLANG_DOTFILES_VERSION}"
    GOPATH="${GO_ASDF_PATH}/packages"
    GOROOT="${GO_ASDF_PATH}/go"
    GO111MODULE='on'
    export GOPATH GOROOT GO111MODULE

    DOTFILES_FEATURES="go ${DOTFILES_FEATURES}"
}

setup_go

install_go_tools() {
    declare -a go_github_packages=(
        "astaxie/bat"
        "golangci/golangci-lint/cmd/golangci-lint"
        "jessfraz/dockfmt"
{'fraction_non_alphanumeric': 0.14596062457569586, 'fraction_numerical': 0.017651052274270197, 'mean_word_length': 4.190140845070423, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2933314', 'n_tokens_mistral': 623, 'n_tokens_neox': 580, 'n_words': 88}