stdio

package module
v0.0.0-...-804a010 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2021 License: MIT Imports: 3 Imported by: 0

README

Contributors Forks Stargazers Issues MIT License LinkedIn


Logo

stdio

Studio reads the user's input from the console.
Explore the docs »

View Demo · Report Bug · Request Feature

Table of Contents

  1. About The Project
  2. Getting Started
  3. Usage
  4. Roadmap
  5. Contributing
  6. License
  7. Contact
  8. Acknowledgements

About The Project

![Product Name Screen Shot][product-screenshot]

Here's a blank template to get started: To avoid retyping too much info. Do a search and replace with your text editor for the following: github_username, repo_name, twitter_handle, email, project_title, project_description

Built With

Getting Started

To get a local copy up and running follow these simple steps.

Prerequisites

This is an example of how to list things you need to use the software and how to install them.

Installation

Use go get to install this package:

go get github.com/135yshr/stdio

Usage

Use this space to show useful examples of how a project can be used. Additional screenshots, code examples and demos work well in this space. You may also link to more resources.

For more examples, please refer to the Documentation

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Your Name - @135yshr - isago@oreha.dev

Project Link: https://github.com/135yshr/stdio

Acknowledgements

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Required     bool
	DefaultValue string
}

Options is option for input api

func (*Options) AskTextByDefaultValue

func (o *Options) AskTextByDefaultValue() string

type Stdio

type Stdio struct {
	Writer io.Writer
	Reader io.Reader
}

Stdio is interface of input and output

func (*Stdio) Ask

func (s *Stdio) Ask(question string, opt *Options) (string, error)

Ask asks the user for input using the specified query. The response is returned as a string.

Jump to

Keyboard shortcuts

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