git @ Cat's Eye Technologies Dipple / master go / foo.go
master

Tree @master (Download .tar.gz)

foo.go @masterraw · history · blame

// SPDX-FileCopyrightText: Chris Pressey, the original author of this work, has dedicated it to the public domain.
// For more information, please refer to <https://unlicense.org/>
// SPDX-License-Identifier: Unlicense

package main

import ("os";"bufio")

func main() {
    reader := bufio.NewReader(os.Stdin);
    for {
        string, error := reader.ReadString('\n');
        if error != nil || string == "quit\n" { break }
        os.Stdout.WriteString(string)
    }
}