cmd

package
v0.4.17 Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2023 License: MIT Imports: 22 Imported by: 0

Documentation

Overview

Copyright © 2023 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Copyright © 2022 NAME HERE <EMAIL ADDRESS>

Index

Constants

This section is empty.

Variables

View Source
var Version string = "v0.0.0-dev"

overwrite with: go build -ldflags "-X github.com/iansinnott/browser-gopher/cmd.Version=$(git describe --tags)"

Functions

func Execute

func Execute()

Execute adds all child commands to the root command and sets flags appropriately. This is called by main.main(). It only needs to happen once to the rootCmd.

func GetUserAgent added in v0.3.0

func GetUserAgent() (string, error)

get user agent returns a valid user agent for use in scraping. in the future the idea is to have it generated at runtime, either by reading from local data or calling a remote api. thus the error return value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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